summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/Wvariadic-1.c
blob: b034aacd2fccc1154aecb7c178e144d2a31a5f73 (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1990 -pedantic -Werror" } */

#define f(x,...)	/* { dg-error "variadic" } */
#define g(x,y...)	/* { dg-error "variadic" } */
int not_empty;
/* { dg-message "warnings being treated as errors" "" { target *-*-* } 0 } */