1 // RUN: %clang_cc1 -Eonly -std=c++17 -pedantic -verify %s
2 // RUN: %clang_cc1 -Eonly -std=c17 -pedantic -verify -x c %s
3 // RUN: %clang_cc1 -Eonly -std=c++20 -pedantic -Wpre-c++20-compat -verify=compat %s
5 #define FOO(x, ...) // expected-note {{macro 'FOO' defined here}} \
6 // compat-note {{macro 'FOO' defined here}}
9 FOO(42) // expected-warning {{must specify at least one argument for '...' parameter of variadic macro}} \
10 // compat-warning {{passing no argument for the '...' parameter of a variadic macro is incompatible with C++ standards before C++20}}