aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/macro_paste_mscomment.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
commitb396a37a235b4d11da3520bc981f07419d7fc31b (patch)
treefa3ecc951c3a096d0d06137afb280d1159b605bd /test/Preprocessor/macro_paste_mscomment.c
parentcf57d615259debd91b649c939468b2d6be299ebc (diff)
Convert Preprocessor Clang tests to FileCheck in regards to PR5307.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/macro_paste_mscomment.c')
-rw-r--r--test/Preprocessor/macro_paste_mscomment.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Preprocessor/macro_paste_mscomment.c b/test/Preprocessor/macro_paste_mscomment.c
index d6ead91068..ecd0b9d6a8 100644
--- a/test/Preprocessor/macro_paste_mscomment.c
+++ b/test/Preprocessor/macro_paste_mscomment.c
@@ -1,5 +1,4 @@
-// RUN: clang-cc -P -E -fms-extensions %s | sed '/^#.\+/d' | tr -d '\n' > %t &&
-// RUN: grep '^int foo;int bar;int baz;$' %t | count 1
+// RUN: clang-cc -P -E -fms-extensions %s | FileCheck -strict-whitespace %s
// This horrible stuff should preprocess into (other than whitespace):
// int foo;
// int bar;
@@ -7,14 +6,21 @@
int foo;
+// CHECK: int foo;
+
#define comment /##/ dead tokens live here
comment This is stupidity
int bar;
+// CHECK: int bar;
+
#define nested(x) int x comment cute little dead tokens...
nested(baz) rise of the dead tokens
;
+// CHECK: int baz
+// CHECK: ;
+