| 1 |
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -x hlsl -finclude-default-header -o - %s -verify -verify-ignore-unexpected |
| 2 |
// RUN: %clang_cc1 -triple spirv-unknown-vulkan1.3-library -x hlsl -finclude-default-header -o - %s -verify -verify-ignore-unexpected |
| 3 |
|
| 4 |
// expected-error@+1 {{attribute 'SV_Position' only applies to a field or parameter of type 'float/float1/float2/float3/float4'}} |
| 5 |
void main(vector<float, 5> a : SV_Position) { |
| 6 |
} |
| 7 |
|
| 8 |
// expected-error@+1 {{attribute 'SV_Position' only applies to a field or parameter of type 'float/float1/float2/float3/float4'}} |
| 9 |
void main(int2 a : SV_Position) { |
| 10 |
} |