Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr84772.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 1 /* PR target/84772 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O -Wuninitialized" } */ | |
4 | |
5 #include <stdarg.h> | |
6 | |
7 void | |
8 foo (int *x, int y, va_list ap) | |
9 { | |
10 __builtin_memset (x, 0, sizeof (int)); | |
11 for (int i = 0; i < y; i++) | |
12 va_arg (ap, long double); /* { dg-bogus "uninitialized" } */ | |
13 } |