mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 22:36:34 +00:00

Also test all shader types and be a bit more careful to make shaders reasonably valid in these tests. Differential Revision: https://reviews.llvm.org/D158820
9 lines
378 B
HLSL
9 lines
378 B
HLSL
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-compute -x hlsl -hlsl-entry foo -o - %s -DSHADER='"mesh"' -verify
|
|
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-compute -x hlsl -hlsl-entry foo -o - %s -DSHADER='"compute"'
|
|
|
|
// expected-error@+1 {{'shader' attribute on entry function does not match the target profile}}
|
|
[numthreads(1,1,1), shader(SHADER)]
|
|
void foo() {
|
|
|
|
}
|