From: Eric Christopher Date: Wed, 15 Mar 2017 23:41:58 +0000 (+0000) Subject: Fix up testcase to: X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acde964fd9b70f6828b3c153562f305ea27ce02d;p=clang Fix up testcase to: 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 --- diff --git a/test/Driver/include-default-header.cl b/test/Driver/include-default-header.cl index db04f7cf9d..2605eaead9 100644 --- a/test/Driver/include-default-header.cl +++ b/test/Driver/include-default-header.cl @@ -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() {}