libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr105149.c
blobb748f454d6d9ddcf25155ff153e161a7b0525a1d
1 /* PR c/105149 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 #include <stdarg.h>
7 void
8 foo (int s, ...)
10 int e;
11 va_list ap;
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);