11 lines · plain
1// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel5.0-library -verify %s2// WaveActiveCountBits is unavailable before ShaderModel 6.0.3 4[shader("compute")]5[numthreads(8,8,1)]6void foo() {7 // expected-error@#site {{'WaveActiveCountBits' is only available on Shader Model 6.0 or newer}}8 // expected-note@hlsl/hlsl_alias_intrinsics.h:* {{'WaveActiveCountBits' has been marked as being introduced in Shader Model 6.0 here, but the deployment target is Shader Model 5.0}}9 unsigned tmp = hlsl::WaveActiveCountBits(1); // #site10}11