summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cpp/va-opt-pedantic.c
blob: 5887bf5a4840091c0349ff92f9ca9eeac1a1cdb0 (plain)
1
2
3
4
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" } */