brintos

brintos / llvm-project-archived public Read only

0
0
Text · 643 B · 875aae0 Raw
22 lines · plain
1// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -emit-llvm-only -disable-llvm-passes -verify2 3bool test_too_few_arg() {4  return __builtin_hlsl_wave_active_any_true();5  // expected-error@-1 {{too few arguments to function call, expected 1, have 0}}6}7 8bool test_too_many_arg(bool p0) {9  return __builtin_hlsl_wave_active_any_true(p0, p0);10  // expected-error@-1 {{too many arguments to function call, expected 1, have 2}}11}12 13struct Foo14{15  int a;16};17 18bool test_type_check(Foo p0) {19  return __builtin_hlsl_wave_active_any_true(p0);20  // expected-error@-1 {{no viable conversion from 'Foo' to 'bool'}}21}22