1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.6-library -x hlsl %s -verify
2 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.5-library -x hlsl %s -verify
6 #if __SHADER_TARGET_MAJOR == 6 && __SHADER_TARGET_MINOR == 6
7 // expected-error@+4 {{attribute 'WaveSize' with 3 arguments requires shader model 6.8 or greater}}
8 #elif __SHADER_TARGET_MAJOR == 6 && __SHADER_TARGET_MINOR == 5
9 // expected-error@+2 {{attribute 'WaveSize' requires shader model 6.6 or greater}}
17 #if __SHADER_TARGET_MAJOR == 6 && __SHADER_TARGET_MINOR == 6
18 // expected-error@+4 {{attribute 'WaveSize' with 2 arguments requires shader model 6.8 or greater}}
19 #elif __SHADER_TARGET_MAJOR == 6 && __SHADER_TARGET_MINOR == 5
20 // expected-error@+2 {{attribute 'WaveSize' requires shader model 6.6 or greater}}