diff options
author | Sam Bishop <sam@bishop.dhs.org> | 2008-03-21 07:02:04 +0000 |
---|---|---|
committer | Sam Bishop <sam@bishop.dhs.org> | 2008-03-21 07:02:04 +0000 |
commit | d8b28d78d63569a7cc4c0aed498ab2bb51310be5 (patch) | |
tree | 43aa9b1fd673f7f50f33f891a2a9f5712145788f | |
parent | 1e2db03f3f782b201be5a4542cd6bad8d869f8c9 (diff) |
Use the -E option when invoking clang. Only the preprocessor is
required to perform this test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48636 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Preprocessor/ifdef-recover.c | 2 | ||||
-rw-r--r-- | test/Preprocessor/includeexpand.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/Preprocessor/ifdef-recover.c b/test/Preprocessor/ifdef-recover.c index bd1d507bbc..7fad8c20bd 100644 --- a/test/Preprocessor/ifdef-recover.c +++ b/test/Preprocessor/ifdef-recover.c @@ -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 diff --git a/test/Preprocessor/includeexpand.c b/test/Preprocessor/includeexpand.c index 33637952b7..89696c470c 100644 --- a/test/Preprocessor/includeexpand.c +++ b/test/Preprocessor/includeexpand.c @@ -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 |