aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/pr118674.c
blob: 00ea438eeb2a9efa0d9d7f5da13c7992c996f5c9 (plain)
1
2
3
4
5
/* PR preprocessor/118674 */
/* { dg-do preprocess } */
#define M(__VA_ARGS__, ...)
/* { dg-error "'__VA_ARGS__' can only appear in the expansion of a C99 variadic macro" "" { target *-*-* } .-1 } */
/* { dg-error "duplicate macro parameter '__VA_ARGS__'" "" { target *-*-* } .-2 } */