]> granicus.if.org Git - clang/commitdiff
Only invoke the preprocessor; it's the only thing being tested. Also, check
authorSam Bishop <sam@bishop.dhs.org>
Fri, 21 Mar 2008 08:05:55 +0000 (08:05 +0000)
committerSam Bishop <sam@bishop.dhs.org>
Fri, 21 Mar 2008 08:05:55 +0000 (08:05 +0000)
the output to make sure that the macros and comments are being treated as such.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48638 91177308-0d34-0410-b5e6-96231b3b80d8

test/Preprocessor/macro_paste_mscomment.c

index 7e06b6d375cb3b665a905477acf94a0d1e7d30d2..bc364ea17098378349387f1052df08838a9b0694 100644 (file)
@@ -1,4 +1,5 @@
-// RUN: clang %s -fsyntax-only -fms-extensions
+// RUN: clang -E -fms-extensions %s | sed '/^#.\+/d' | tr -d '\n' |
+// RUN:   grep '^int foo;int bar;int baz;$' | count 1
 // This horrible stuff should preprocess into (other than whitespace):
 //   int foo;
 //   int bar;