Debian Codegraph @

clang/test/SemaHLSL/inline-spirv/SpirvType.incomplete.hlsl

raw
1 // RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
2 // RUN: spirv-unknown-vulkan-compute %s -fsyntax-only -verify
3
4 struct S; // expected-note {{forward declaration of 'S'}}
5
6 // expected-error@hlsl/hlsl_spirv.h:24 {{argument type 'S' is incomplete}}
7
8 typedef vk::SpirvOpaqueType</* OpTypeArray */ 28, S, vk::integral_constant<uint, 4>> ArrayOfS; // #1
9 // expected-note@#1 {{in instantiation of template type alias 'SpirvOpaqueType' requested here}}
10
11 [numthreads(1, 1, 1)]
12 void main() {
13 ArrayOfS buffers;
14 }