diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-07 01:49:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-07 01:49:36 +0000 |
commit | 9944f788781bb632569e4f3a47298a84f273c52f (patch) | |
tree | f04383e2c29007ce16c7cc5076248ea47516a370 /test/Preprocessor/dump_macros.c | |
parent | f7449346006d6b94b14a303eb82cad52c8e75413 (diff) |
filecheckize
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/dump_macros.c')
-rw-r--r-- | test/Preprocessor/dump_macros.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/test/Preprocessor/dump_macros.c b/test/Preprocessor/dump_macros.c index bdc6953677..8fcf037450 100644 --- a/test/Preprocessor/dump_macros.c +++ b/test/Preprocessor/dump_macros.c @@ -1,30 +1,29 @@ -// RUN: clang-cc -E -dM %s -o %t +// RUN: clang-cc -E -dM %s -o - | FileCheck %s -strict-whitespace -// Space even without expansion tokens -// RUN: grep "#define A(x) " %t +// Space at end even without expansion tokens +// CHECK: {{#define A[(]x[)] $}} #define A(x) // Space before expansion list. -// RUN: grep "#define B(x,y) x y" %t +// CHECK: {{#define B[(]x,y[)] x y$}} #define B(x,y)x y -// No space in expansion list. -// RUN: grep "#define C(x,y) x y" %t +// No space in argument list. +// CHECK: #define C(x,y) x y #define C(x, y) x y // No paste avoidance. -// RUN: grep "#define X() .." %t +// CHECK: #define X() .. #define X() .. // Simple test. -// RUN: grep "#define Y ." %t -// RUN: grep "#define Z X()Y" %t +// CHECK: #define Y . +// CHECK: #define Z X()Y #define Y . #define Z X()Y // gcc prints macros at end of translation unit, so last one wins. -// RUN: grep "#define foo 2" %t -// RUN: not grep "#define foo 1" %t +// CHECK: #define foo 2 #define foo 1 #undef foo #define foo 2 |