[cfe-commits] r48638 - /cfe/trunk/test/Preprocessor/macro_paste_mscomment.c

Sam Bishop sam at bishop.dhs.org
Fri Mar 21 01:05:56 PDT 2008


Author: sbishop
Date: Fri Mar 21 03:05:55 2008
New Revision: 48638

URL: http://llvm.org/viewvc/llvm-project?rev=48638&view=rev
Log:
Only invoke the preprocessor; it's the only thing being tested.  Also, check
the output to make sure that the macros and comments are being treated as such.

Modified:
    cfe/trunk/test/Preprocessor/macro_paste_mscomment.c

Modified: cfe/trunk/test/Preprocessor/macro_paste_mscomment.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/macro_paste_mscomment.c?rev=48638&r1=48637&r2=48638&view=diff

==============================================================================
--- cfe/trunk/test/Preprocessor/macro_paste_mscomment.c (original)
+++ cfe/trunk/test/Preprocessor/macro_paste_mscomment.c Fri Mar 21 03:05:55 2008
@@ -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;





More information about the cfe-commits mailing list