aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/Wvariadic-1p.c
blob: 84a71082e62f986f42caee548415e94339fa9cf6 (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1990 " } */
#pragma GCC diagnostic error "-Wpedantic"

#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 } */