From 461a67fa15370a9ec88f8f8a240bf7c123bb2029 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 18 Dec 2017 20:11:37 +0000 Subject: Vendor import of clang trunk r321017: https://llvm.org/svn/llvm-project/cfe/trunk@321017 --- test/SemaCUDA/error-includes-mode.cu | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/SemaCUDA/error-includes-mode.cu (limited to 'test/SemaCUDA/error-includes-mode.cu') 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; -- cgit v1.3