| 1 |
// RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck --check-prefix HOST %s |
| 2 |
// RUN: not %clang_cc1 -triple nvptx-unknown-unknown -target-cpu sm_35 \ |
| 3 |
// RUN: -fcuda-is-device -fsyntax-only %s 2>&1 | FileCheck --check-prefix SM35 %s |
| 4 |
// RUN: not %clang_cc1 -triple spirv64-unknown-unknown \ |
| 5 |
// RUN: -fcuda-is-device -fsyntax-only %s 2>&1 | FileCheck --check-prefix SPIRV %s |
| 6 |
// RUN: not %clang_cc1 -triple spirv64-amd-amdhsa \ |
| 7 |
// RUN: -fcuda-is-device -fsyntax-only %s 2>&1 | FileCheck --check-prefix AMDGCNSPIRV %s |
| 8 |
// RUN: not %clang_cc1 -triple spirv64-intel-unknown \ |
| 9 |
// RUN: -fcuda-is-device -fsyntax-only %s 2>&1 | FileCheck --check-prefix INTELSPIRV %s |
| 10 |
|
| 11 |
// HOST: 1 error generated when compiling for host |
| 12 |
// SM35: 1 error generated when compiling for sm_35 |
| 13 |
// SPIRV: 1 error generated when compiling for spirv64-unknown-unknown |
| 14 |
// AMDGCNSPIRV: 1 error generated when compiling for spirv64-amd-amdhsa |
| 15 |
// INTELSPIRV: 1 error generated when compiling for spirv64-intel-unknown |
| 16 |
error; |