Debian Codegraph @

gcc/testsuite/gcc.dg/cpp/c11-vararg-1.c

raw
1 /* Test error in C11 for no arguments passed for variable arguments to a
2 macro. */
3 /* { dg-do preprocess } */
4 /* { dg-options "-std=c11 -pedantic-errors" } */
5
6 #define M(X, ...) X
7
8 M (x); /* { dg-error "requires at least one argument" } */
9 M (x, y);