summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/macro_rescan_varargs.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-10-27 02:36:32 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-10-27 02:36:32 +0000
commitf78edf52de7aa68e98a1c43ade5cacd60d5ab0b1 (patch)
tree0dc85083fd54defdc50c764d91ecfaf43c238fa2 /clang/test/Preprocessor/macro_rescan_varargs.c
parenta5ae75425d927569a6041c6b76e5b2f765d20864 (diff)
downloadbcm5719-llvm-f78edf52de7aa68e98a1c43ade5cacd60d5ab0b1.tar.gz
bcm5719-llvm-f78edf52de7aa68e98a1c43ade5cacd60d5ab0b1.zip
Convert Preprocessor Clang tests to FileCheck in regards to PR5307.
llvm-svn: 85199
Diffstat (limited to 'clang/test/Preprocessor/macro_rescan_varargs.c')
-rw-r--r--clang/test/Preprocessor/macro_rescan_varargs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/Preprocessor/macro_rescan_varargs.c b/clang/test/Preprocessor/macro_rescan_varargs.c
index ed1056ab1b3..8a3ad151141 100644
--- a/clang/test/Preprocessor/macro_rescan_varargs.c
+++ b/clang/test/Preprocessor/macro_rescan_varargs.c
@@ -1,5 +1,5 @@
-// RUN: clang-cc -E %s | grep -F "1: F, (, 'a', 'b', );" &&
-// RUN: clang-cc -E %s | grep -F "2: 'a' + 'b';"
+// RUN: clang-cc -E %s | FileCheck -strict-whitespace %s
+
#define LPAREN (
#define RPAREN )
#define F(x, y) x + y
@@ -8,3 +8,6 @@
1: ELLIP_FUNC(F, LPAREN, 'a', 'b', RPAREN); /* 1st invocation */
2: ELLIP_FUNC(F LPAREN 'a', 'b' RPAREN); /* 2nd invocation */
+// CHECK: 1: F, (, 'a', 'b', );
+// CHECK: 2: 'a' + 'b';
+
OpenPOWER on IntegriCloud