clang/test/ParserHLSL/semantic_parsing_define.hlsl
raw| 1 | // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -o - %s -verify |
| 2 | // RUN: %clang_cc1 -triple spirv-unknown-vulkan1.3-compute -x hlsl -o - %s -verify |
| 3 | |
| 4 | #define SomeDefine SV_IWantAPony |
| 5 | |
| 6 | // expected-error@7 {{unknown HLSL semantic 'SV_IWantAPony'}} |
| 7 | void Pony(int GI : SomeDefine) { } |