summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/stringize_space.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/stringize_space.c')
-rw-r--r--clang/test/Preprocessor/stringize_space.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/stringize_space.c b/clang/test/Preprocessor/stringize_space.c
index 263cff831b3..2d79d478e39 100644
--- a/clang/test/Preprocessor/stringize_space.c
+++ b/clang/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"{{$}}
+
OpenPOWER on IntegriCloud