cxx_oper_spelling.cpp 297 B

123456789101112
  1. // RUN: %clang_cc1 -E %s | FileCheck %s
  2. #define X(A) #A
  3. // C++'03 2.5p2: "In all respects of the language, each alternative
  4. // token behaves the same, respectively, as its primary token,
  5. // except for its spelling"
  6. //
  7. // This should be spelled as 'and', not '&&'
  8. a: X(and)
  9. // CHECK: a: "and"