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.

llvm-svn: 48638
This commit is contained in:
Sam Bishop 2008-03-21 08:05:55 +00:00
parent 27654983dc
commit f4303edfa3
1 changed files with 2 additions and 1 deletions

View 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;