2 // { dg-options "-O2" }
4 int bar (int, const char *, int, ...);
5 int baz (int, const char *, long int);
7 extern inline __attribute__((always_inline)) int
10 return bar (y, "", __builtin_va_arg_pack ()); /* { dg-error "invalid use of" } */
13 extern inline __attribute__((always_inline)) int
16 return bar (y, "", 5, __builtin_va_arg_pack ());
19 extern inline __attribute__((always_inline)) int
22 return bar (y, "", 4, __builtin_va_arg_pack (), 6); /* { dg-error "invalid use of" } */
25 extern inline __attribute__((always_inline)) int
28 return baz (y, "", __builtin_va_arg_pack ()); /* { dg-error "invalid use of" } */
31 extern inline __attribute__((always_inline)) int
34 return __builtin_va_arg_pack (); /* { dg-error "invalid use of" } */
40 int a = f2 (5, "a", 6);
41 a += f3 (6, "ab", 17LL);