aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenHLSL/semantics/DispatchThreadID-noindex.hlsl
blob: 9ed545762ec94f7c390f4b9e5d36979ae4687643 (plain)
1
2
3
4
5
6
7
8
// 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_DispatchThreadID1) {
  // expected-error@-1 {{semantic SV_DispatchThreadID does not allow indexing}}
}