clang/test/SemaHLSL/Semantics/missing-vs.hlsl
raw| 1 | // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-vertex -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s -verify -verify-ignore-unexpected=note |
| 2 | // RUN: %clang_cc1 -triple spirv-unknown-vulkan-vertex -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s -verify -verify-ignore-unexpected=note |
| 3 | |
| 4 | float main(unsigned GI : A) { |
| 5 | // expected-error@-1 {{semantic annotations must be present for all parameters of an entry function or patch constant function}} |
| 6 | } |