diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/cpp/va-opt-pedantic.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/cpp/va-opt-pedantic.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/cpp/va-opt-pedantic.c b/gcc/testsuite/c-c++-common/cpp/va-opt-pedantic.c new file mode 100644 index 0000000..5887bf5 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/va-opt-pedantic.c @@ -0,0 +1,5 @@ +/* { dg-do preprocess }*/ +/* { dg-options "-std=c11 -pedantic-errors" { target c } } */ +/* { dg-options "-std=c++17 -pedantic-errors" { target c++ } } */ + +#define CALL(F, ...) F (7 __VA_OPT__(,) __VA_ARGS__) /* { dg-error "__VA_OPT__ is not available" } */ |