]> granicus.if.org Git - clang/commitdiff
Fix up testcase to:
authorEric Christopher <echristo@gmail.com>
Wed, 15 Mar 2017 23:41:58 +0000 (23:41 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 15 Mar 2017 23:41:58 +0000 (23:41 +0000)
a) avoid actually compiling anything
b) avoid depositing files in the test directory
c) use a check line to make sure that we're looking for the correct behavior

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

test/Driver/include-default-header.cl

index db04f7cf9d1ef52e2755f2f1ba4b13a570cc3bad..2605eaead9c18d9861815a23da81c89efe1a2927 100644 (file)
@@ -1,4 +1,6 @@
-// RUN: %clang -v -save-temps -x cl -Xclang -cl-std=CL2.0 -Xclang -finclude-default-header -emit-llvm -c %s
+// RUN: %clang -save-temps -x cl -Xclang -cl-std=CL2.0 -Xclang -finclude-default-header -emit-llvm -S -### %s
+// CHECK-NOT: finclude-default-header
+// Make sure we don't pass -finclude-default-header to any commands other than the driver.
 
 void test() {}