17 lines · plain
1// RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck --check-prefix HOST %s2// 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 %s4// RUN: not %clang_cc1 -triple spirv64-unknown-unknown \5// RUN: -fcuda-is-device -fsyntax-only %s 2>&1 | FileCheck --check-prefix SPIRV %s6// RUN: not %clang_cc1 -triple spirv64-amd-amdhsa \7// RUN: -fcuda-is-device -fsyntax-only %s 2>&1 | FileCheck --check-prefix AMDGCNSPIRV %s8// RUN: not %clang_cc1 -triple spirv64-intel-unknown \9// RUN: -fcuda-is-device -fsyntax-only %s 2>&1 | FileCheck --check-prefix INTELSPIRV %s10 11// HOST: 1 error generated when compiling for host12// SM35: 1 error generated when compiling for sm_3513// SPIRV: 1 error generated when compiling for spirv64-unknown-unknown14// AMDGCNSPIRV: 1 error generated when compiling for spirv64-amd-amdhsa15// INTELSPIRV: 1 error generated when compiling for spirv64-intel-unknown16error;17