Reid Kleckner | e494399 | 2013-04-10 21:10:39 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -E %s | FileCheck %s |
Chris Lattner | c5b966f | 2006-11-21 17:31:32 +0000 | [diff] [blame] | 2 | |
| 3 | #define X(A) #A |
| 4 | |
| 5 | // C++'03 2.5p2: "In all respects of the language, each alternative |
| 6 | // token behaves the same, respectively, as its primary token, |
| 7 | // except for its spelling" |
| 8 | // |
| 9 | // This should be spelled as 'and', not '&&' |
| 10 | a: X(and) |
Reid Kleckner | e494399 | 2013-04-10 21:10:39 +0000 | [diff] [blame] | 11 | // CHECK: a: "and" |
Chris Lattner | c5b966f | 2006-11-21 17:31:32 +0000 | [diff] [blame] | 12 | |