diff options
Diffstat (limited to 'test/Preprocessor/hash_line.c')
-rw-r--r-- | test/Preprocessor/hash_line.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/Preprocessor/hash_line.c b/test/Preprocessor/hash_line.c index 64edae0..c4de9f0 100644 --- a/test/Preprocessor/hash_line.c +++ b/test/Preprocessor/hash_line.c @@ -1,11 +1,12 @@ // The 1 and # should not go on the same line. // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s -// CHECK-NOT: 1{{.*}}# // CHECK: {{^1$}} -// CHECK-NOT: 1{{.*}}# -// CHECK: {{^ #$}} -// CHECK-NOT: 1{{.*}}# -1 +// CHECK-NEXT: {{^ #$}} +// CHECK-NEXT: {{^2$}} +// CHECK-NEXT: {{^ #$}} #define EMPTY +#define IDENTITY(X) X +1 EMPTY # - +2 +IDENTITY() # |