//TEST:SIMPLE(filecheck=CHECK):-target spirv [require(hlsl)] struct MyType {} //CHECK: ([[# @LINE+2]]): error 36107 [numthreads(1,1,1)] void f1() { MyType t; // compile to spirv should result error here. } ConstantBuffer t2; //CHECK: ([[# @LINE+2]]): error 36107 [numthreads(1,1,1)] void f2() // compile to spirv should result error here. { ConstantBuffer t3 = t2; }