clang/test/SemaHLSL/entry_shader.hlsl
raw| 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)] |
| 6 | void foo() { |
| 7 | |
| 8 | } |