Sign in
gnu
/
gcc
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
gcc.dg
/
cpp
/
c11-vararg-1.c
blob: 6b1bc38bb2c662974074eca29e1f7e01279ec97a [
file
] [
log
] [
blame
]
/* Test error in C11 for no arguments passed for variable arguments to a
macro. */
/* { dg-do preprocess } */
/* { dg-options "-std=c11 -pedantic-errors" } */
#define
M
(
X
,
...)
X
M
(
x
);
/* { dg-error "requires at least one argument" } */
M
(
x
,
y
);