blob: 795e880fba0fdf4ad040511ee0280068545235c7 [file] [edit]
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -emit-llvm -finclude-default-header -disable-llvm-passes -o - %s -verify -verify-ignore-unexpected=note,error
// RUN: %clang_cc1 -triple spirv-linux-vulkan-library -x hlsl -emit-llvm -finclude-default-header -disable-llvm-passes -o - %s -verify -verify-ignore-unexpected=note,error
[shader("compute")]
[numthreads(8,8,1)]
void foo(uint Idx : SV_GroupID1) {
// expected-error@-1 {{semantic 'SV_GroupID' does not allow indexing}}
}
[shader("compute")]
[numthreads(8,8,1)]
void bar(uint Idx : SV_GROUPID1) {
// expected-error@-1 {{semantic 'SV_GROUPID' does not allow indexing}}
}