xref: /llvm-project/clang/test/SemaHLSL/entry_shader.hlsl (revision 43a9b92d79ab6a59c3cfaa926bb32f161ef2facc)
1// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-compute -x hlsl -hlsl-entry foo  -o - %s -DSHADER='"mesh"' -verify
2// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-compute -x hlsl -hlsl-entry foo  -o - %s -DSHADER='"compute"'
3
4// expected-error@+1 {{'shader' attribute on entry function does not match the target profile}}
5[numthreads(1,1,1), shader(SHADER)]
6void foo() {
7
8}
9