xref: /llvm-project/clang/test/Preprocessor/cxx_oper_spelling.cpp (revision e49439920358d026269d425943e514dc9735bde3)
1*e4943992SReid Kleckner // RUN: %clang_cc1 -E %s | FileCheck %s
2c5b966f8SChris Lattner 
3c5b966f8SChris Lattner #define X(A) #A
4c5b966f8SChris Lattner 
5c5b966f8SChris Lattner // C++'03 2.5p2: "In all respects of the language, each alternative
6c5b966f8SChris Lattner // token behaves the same, respectively, as its primary token,
7c5b966f8SChris Lattner // except for its spelling"
8c5b966f8SChris Lattner //
9c5b966f8SChris Lattner // This should be spelled as 'and', not '&&'
10c5b966f8SChris Lattner a: X(and)
11*e4943992SReid Kleckner // CHECK: a: "and"
12c5b966f8SChris Lattner 
13