OSDN Git Service

gcc/ChangeLog:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / va-arg-pack-2.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 extern void noreturn (int status, ...);
5
6 extern inline __attribute ((always_inline)) void
7 error (int status, ...)
8 {
9   if (__builtin_constant_p (status))
10     noreturn (status, __builtin_va_arg_pack ());
11 }
12
13 void
14 f (void)
15 {
16   error (1);
17 }