]> granicus.if.org Git - clang/commitdiff
Use the -E option when invoking clang. Only the preprocessor is
authorSam Bishop <sam@bishop.dhs.org>
Fri, 21 Mar 2008 07:02:04 +0000 (07:02 +0000)
committerSam Bishop <sam@bishop.dhs.org>
Fri, 21 Mar 2008 07:02:04 +0000 (07:02 +0000)
required to perform this test.

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

test/Preprocessor/ifdef-recover.c
test/Preprocessor/includeexpand.c

index bd1d507bbc49417addc50da76dbad23334637288..7fad8c20bd4ce54e1db652f9ba41986b695719e5 100644 (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
index 33637952b79257e3542934a550243a03ab9d2d7c..89696c470cc4bb6339c464858bc2c4fe68d48594 100644 (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