Debian Codegraph @

clang/test/SemaHLSL/BuiltIns/WaveGetLaneIndex-errors.hlsl

raw
1 // RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -emit-llvm-only -disable-llvm-passes -verify
2
3 int test_too_many_arg(int x) {
4 return __builtin_hlsl_wave_get_lane_index(x);
5 // expected-error@-1 {{too many arguments to function call, expected 0, have 1}}
6 }