// RUN: %clang_cc1 -Eonly -verify -pedantic %s
// pasting ""x"" and ""+"" does not give a valid preprocessing token
XYZ // expected-error {{pasting formed 'x+', an invalid preprocessing token}}
XXYZ // expected-error {{pasting formed '.test', an invalid preprocessing token}}
// GCC PR 20077
// Invalid token pasting.
// PR3918
// When pasting creates poisoned identifiers, we error.
BLARG // expected-error {{attempt to use a poisoned identifier}}
XX // expected-error {{attempt to use a poisoned identifier}}
int VA; // expected-warning {{__VA_ARGS__ can only appear in the expansion of a C99 variadic macro}}
;
// expected-error {{too many arguments provided to function-like macro invocation}}
// expected-note@-1 {{parentheses are required around macro argument containing braced initializer list}}
// expected-error {{too many arguments provided to function-like macro invocation}}
// expected-note@-1 {{parentheses are required around macro argument containing braced initializer list}}