From acde964fd9b70f6828b3c153562f305ea27ce02d Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 15 Mar 2017 23:41:58 +0000 Subject: [PATCH] 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 --- test/Driver/include-default-header.cl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() {} -- 2.40.0