diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-10-26 22:51:02 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-10-26 22:51:02 +0000 |
commit | 0e2f7930fbffd3c7b200e5a99883a570a66b79bc (patch) | |
tree | ed938d0c00de65530fe949ddefba6b9bcdc0aa09 | |
parent | 1de6a1f7d2ec7d14d7c27c86d9b5148d0346675a (diff) | |
download | bcm5719-llvm-0e2f7930fbffd3c7b200e5a99883a570a66b79bc.tar.gz bcm5719-llvm-0e2f7930fbffd3c7b200e5a99883a570a66b79bc.zip |
Convert a few tests to FileCheck for PR5307.
llvm-svn: 85170
-rw-r--r-- | clang/test/Preprocessor/c99-6_10_3_3_p4.c | 5 | ||||
-rw-r--r-- | clang/test/Preprocessor/macro_disable3.c | 4 | ||||
-rw-r--r-- | clang/test/Preprocessor/macro_rparen_scan2.c | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/clang/test/Preprocessor/c99-6_10_3_3_p4.c b/clang/test/Preprocessor/c99-6_10_3_3_p4.c index 89660549b9a..a23fb77602d 100644 --- a/clang/test/Preprocessor/c99-6_10_3_3_p4.c +++ b/clang/test/Preprocessor/c99-6_10_3_3_p4.c @@ -1,6 +1,9 @@ -// RUN: clang-cc -E %s | grep -F 'char p[] = "x ## y";' +// RUN: clang-cc -E %s | FileCheck %s #define hash_hash # ## # #define mkstr(a) # a #define in_between(a) mkstr(a) #define join(c, d) in_between(c hash_hash d) char p[] = join(x, y); + +// CHECK: char p[] = "x ## y"; + diff --git a/clang/test/Preprocessor/macro_disable3.c b/clang/test/Preprocessor/macro_disable3.c index 011de3beed3..2983f2d9a45 100644 --- a/clang/test/Preprocessor/macro_disable3.c +++ b/clang/test/Preprocessor/macro_disable3.c @@ -1,4 +1,4 @@ -// RUN: clang-cc %s -E | grep -F 'f(2 * (f(2 * (z[0]))));' +// RUN: clang-cc %s -E | FileCheck %s // Check for C99 6.10.3.4p2. #define f(a) f(x * (a)) @@ -6,3 +6,5 @@ #define z z[0] f(f(z)); +// CHECK: f(2 * (f(2 * (z[0])))); + diff --git a/clang/test/Preprocessor/macro_rparen_scan2.c b/clang/test/Preprocessor/macro_rparen_scan2.c index 41748ac459b..30597a00973 100644 --- a/clang/test/Preprocessor/macro_rparen_scan2.c +++ b/clang/test/Preprocessor/macro_rparen_scan2.c @@ -1,4 +1,4 @@ -// RUN: clang-cc -E %s | grep -F 'static int glob = (1 + 1 );' +// RUN: clang-cc -E %s | FileCheck %s #define R_PAREN ) @@ -6,3 +6,5 @@ static int glob = (1 + FUNC(1 R_PAREN ); +// CHECK: static int glob = (1 + 1 ); + |