Debian Codegraph @

gcc/testsuite/gcc.dg/pr105149.c

raw
1 /* PR c/105149 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4
5 #include <stdarg.h>
6
7 void
8 foo (int s, ...)
9 {
10 int e;
11 va_list ap;
12
13 va_start (ap, s);
14 e = va_arg (ap, int (void)) (); /* { dg-error "second argument to 'va_arg' is a function type" } */
15 va_end (ap);
16 }