Use the -E option when invoking clang. Only the preprocessor is

required to perform this test.

llvm-svn: 48636
This commit is contained in:
Sam Bishop 2008-03-21 07:02:04 +00:00
parent 68b11e14bc
commit 558447416d
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* RUN: clang %s 2>&1 | grep error: | count 3
/* RUN: clang -E %s 2>&1 >/dev/null | grep error: | count 3
*/
#ifdef

View File

@ -1,4 +1,4 @@
// RUN: clang %s -fno-caret-diagnostics 2>&1 | grep 'file successfully included' | wc -l | grep 3
// RUN: clang -E %s -fno-caret-diagnostics 2>&1 >/dev/null | grep 'file successfully included' | count 3
// XX expands to nothing.
#define XX