aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCUDA/error-includes-mode.cu
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCUDA/error-includes-mode.cu')
-rw-r--r--test/SemaCUDA/error-includes-mode.cu7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaCUDA/error-includes-mode.cu b/test/SemaCUDA/error-includes-mode.cu
new file mode 100644
index 000000000000..257fdeceef65
--- /dev/null
+++ b/test/SemaCUDA/error-includes-mode.cu
@@ -0,0 +1,7 @@
+// RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck --check-prefix HOST %s
+// RUN: not %clang_cc1 -triple nvptx-unknown-unknown -target-cpu sm_35 \
+// RUN: -fcuda-is-device -fsyntax-only %s 2>&1 | FileCheck --check-prefix SM35 %s
+
+// HOST: 1 error generated when compiling for host
+// SM35: 1 error generated when compiling for sm_35
+error;