brintos

brintos / llvm-project-archived public Read only

0
0
Text · 378 B · 0ed6c0c Raw
9 lines · plain
1// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-compute -x hlsl -hlsl-entry foo  -o - %s -DSHADER='"mesh"' -verify2// 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