diff options
-rw-r--r-- | test/Preprocessor/stringize_space.c | 12 | ||||
-rw-r--r-- | test/Preprocessor/stringize_space2.c | 6 |
2 files changed, 11 insertions, 7 deletions
diff --git a/test/Preprocessor/stringize_space.c b/test/Preprocessor/stringize_space.c index 263cff831b..2d79d478e3 100644 --- a/test/Preprocessor/stringize_space.c +++ b/test/Preprocessor/stringize_space.c @@ -1,4 +1,14 @@ -// RUN: %clang_cc1 -E %s | grep -- '-"" , - "" , -"" , - ""' +// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s #define A(b) -#b , - #b , -# b , - # b A() + +// CHECK: {{^}}-"" , - "" , -"" , - ""{{$}} + + +#define t(x) #x +t(a +c) + +// CHECK: {{^}}"a c"{{$}} + diff --git a/test/Preprocessor/stringize_space2.c b/test/Preprocessor/stringize_space2.c deleted file mode 100644 index a87d78e404..0000000000 --- a/test/Preprocessor/stringize_space2.c +++ /dev/null @@ -1,6 +0,0 @@ -/* RUN: %clang_cc1 -E %s | grep 'a c' - */ -#define t(x) #x -t(a -c) - |