Debian Codegraph @

clang/test/SemaHLSL/inline-spirv/SpirvType.dx.error.hlsl

raw
1 // RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
2 // RUN: dxil-pc-shadermodel6.0-compute %s \
3 // RUN: -fsyntax-only -verify
4
5 typedef vk::SpirvType<12, 2, 4, float> InvalidType; // expected-error {{use of undeclared identifier 'vk'}}
6
7 [numthreads(1, 1, 1)]
8 void main() {
9 __hlsl_spirv_type<12, 2, 4, float> InvalidValue; // expected-error {{'__hlsl_spirv_type' is only available for the SPIR-V target}}
10 }