1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -finclude-default-header -x hlsl -ast-dump -verify -o - %s
4 // expected-error@+1 {{attribute 'SV_DispatchThreadID' only applies to a field or parameter of type 'uint/uint2/uint3'}}
5 void CSMain(float ID : SV_DispatchThreadID) {
14 // expected-error@+1 {{attribute 'SV_DispatchThreadID' only applies to a field or parameter of type 'uint/uint2/uint3'}}
15 void CSMain2(ST ID : SV_DispatchThreadID) {
20 // expected-warning@+1 {{'SV_DispatchThreadID' attribute only applies to parameters and non-static data members}}
21 uint V : SV_DispatchThreadID;
26 // expected-error@+1 {{use of undeclared identifier 'SV_DispatchThreadID'}}
27 static uint X : SV_DispatchThreadID;
28 // expected-error@+1 {{use of undeclared identifier 'SV_DispatchThreadID'}}
29 uint s : SV_DispatchThreadID;