Author: echristo Date: Wed Mar 15 18:41:58 2017 New Revision: 297917 URL: http://llvm.org/viewvc/llvm-project?rev=297917&view=rev Log: 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 Modified: cfe/trunk/test/Driver/include-default-header.cl Modified: cfe/trunk/test/Driver/include-default-header.cl URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/include-default-header.cl?rev=297917&r1=297916&r2=297917&view=diff ============================================================================== --- cfe/trunk/test/Driver/include-default-header.cl (original) +++ cfe/trunk/test/Driver/include-default-header.cl Wed Mar 15 18:41:58 2017 @@ -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() {} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits