diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-28 17:31:40 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-28 17:31:40 +0000 |
commit | 94b309e909e568d620700dac60324430cfa73230 (patch) | |
tree | 03473d3cdbf07acf4b7965244b736dca61408e3c | |
parent | 1407b49552c40f30e6da1a5306f0d71747aaea13 (diff) |
FileCheck'ize and merge tests
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173697 91177308-0d34-0410-b5e6-96231b3b80d8
-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) - |