From: Dmitri Gribenko Date: Mon, 28 Jan 2013 17:31:40 +0000 (+0000) Subject: FileCheck'ize and merge tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94b309e909e568d620700dac60324430cfa73230;p=clang FileCheck'ize and merge tests git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173697 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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) -