diff options
Diffstat (limited to 'test/Preprocessor/macro_expand_empty.c')
-rw-r--r-- | test/Preprocessor/macro_expand_empty.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/Preprocessor/macro_expand_empty.c b/test/Preprocessor/macro_expand_empty.c index 3fb6394dc9ea..550772888146 100644 --- a/test/Preprocessor/macro_expand_empty.c +++ b/test/Preprocessor/macro_expand_empty.c @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -fsyntax-only %s +// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s + // Check that this doesn't crash #define IDENTITY1(x) x @@ -12,3 +13,9 @@ #define IDENTITY9(x) IDENTITY8(x) IDENTITY8(x) IDENTITY8(x) IDENTITY8(x) #define IDENTITY0(x) IDENTITY9(x) IDENTITY9(x) IDENTITY9(x) IDENTITY9(x) IDENTITY0() + +#define FOO() BAR() second +#define BAR() +first // CHECK: {{^}}first{{$}} +FOO() // CHECK: {{^}} second{{$}} +third // CHECK: {{^}}third{{$}} |