aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/include-default-header.cl
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/include-default-header.cl')
-rw-r--r--test/Driver/include-default-header.cl6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Driver/include-default-header.cl b/test/Driver/include-default-header.cl
new file mode 100644
index 000000000000..2605eaead9c1
--- /dev/null
+++ b/test/Driver/include-default-header.cl
@@ -0,0 +1,6 @@
+// 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() {}
+