aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaHLSL/Semantics/missing-vs.hlsl
blob: 41be9c0ab730cf372b2c4cee0b0fa25ccca1da34 (plain)
1
2
3
4
5
6
// 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
// 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

float main(unsigned GI : A) {
  // expected-error@-1 {{semantic annotations must be present for all parameters of an entry function or patch constant function}}
}