Debian Codegraph @

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

raw
1 // RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
2 // RUN: spirv-unknown-vulkan-compute %s -fsyntax-only -verify
3
4 // expected-error@hlsl/hlsl_spirv.h:18 {{the argument to vk::Literal must be a vk::integral_constant}}
5
6 typedef vk::SpirvOpaqueType<28, vk::Literal<float>> T; // #1
7 // expected-note@#1 {{in instantiation of template type alias 'SpirvOpaqueType' requested here}}
8
9 [numthreads(1, 1, 1)]
10 void main() {
11 }