// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -ast-dump -o - %s | FileCheck %s // tests that hlsl annotations are properly parsed when applied on field decls, // and that the annotation gets properly placed on the AST. struct Eg9{ // CHECK: CXXRecordDecl 0x{{[0-9a-f]+}} col:8 implicit struct Eg9 // CHECK: FieldDecl 0x{{[0-9a-f]+}} col:16 referenced a 'unsigned int' // CHECK: -HLSLParsedSemanticAttr 0x{{[0-9a-f]+}} "SV_DispatchThreadID" 0 unsigned int a : SV_DispatchThreadID; }; Eg9 e9; RWBuffer In : register(u1); [numthreads(1,1,1)] void main() { In[0] = e9.a; }