]> granicus.if.org Git - clang/commitdiff
Don't actually execute gcc during testing.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 4 Apr 2012 09:05:21 +0000 (09:05 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 4 Apr 2012 09:05:21 +0000 (09:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154005 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/apple-kext-i386.cpp

index 6c536074df52bcc9d3b361e71336e1820f9094bb..a09d6a6c9d458b05234031be9f2f0137bd5dc197 100644 (file)
@@ -43,5 +43,9 @@
 
 // Check that --serialize-diagnostics does not cause an "argument unused" error.
 // RUN: %clang -target i386-apple-darwin10 \
-// RUN:   -Werror -Wall -Wno-comment -fapple-kext \
-// RUN:   --serialize-diagnostics %t.dia -c %s
+// RUN:   -Werror -Wall -Wno-comment -fapple-kext -### \
+// RUN:   --serialize-diagnostics %t.dia -c %s 2>&1 | \
+// RUN:   FileCheck --check-prefix=CHECK-UNUSED %s
+
+// CHECK-UNUSED-NOT: argument unused
+// CHECK-UNUSED: cc1plus