1 // RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel5.0-library -verify %s
2 // WaveActiveCountBits is unavailable before ShaderModel 6.0.
7 // expected-error@#site {{'WaveActiveCountBits' is only available on Shader Model 6.0 or newer}}
8 // expected-note@hlsl/hlsl_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 return hlsl::WaveActiveCountBits(1); // #site