Nathan Gauër 1f0003f1de
Reapply "[HLSL] Rewrite semantics parsing" (#157718) (#158044)
This is a re-land of #152537 now that #157841 is merged.
2025-09-11 17:01:52 +02:00

8 lines
501 B
HLSL

// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s -verify -verify-ignore-unexpected=note
// RUN: %clang_cc1 -triple spirv-unknown-vulkan-compute -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s -verify -verify-ignore-unexpected=note
[numthreads(1,1,1)]
void main(unsigned GI) {
// expected-error@-1 {{semantic annotations must be present for all parameters of an entry function or patch constant function}}
}