brintos

brintos / llvm-project-archived public Read only

0
0
Text · 695 B · 84333ba Raw
14 lines · plain
1// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -fnative-int16-type -emit-llvm-only -disable-llvm-passes -verify2 3float test_too_few_arg() {4  return dot2add();5  // expected-error@-1 {{no matching function for call to 'dot2add'}}6  // expected-note@hlsl/hlsl_intrinsics.h:* {{candidate function not viable: requires 3 arguments, but 0 were provided}}7}8 9float test_too_many_arg(half2 p1, half2 p2, float p3) {10  return dot2add(p1, p2, p3, p1);11  // expected-error@-1 {{no matching function for call to 'dot2add'}}12  // expected-note@hlsl/hlsl_intrinsics.h:* {{candidate function not viable: requires 3 arguments, but 4 were provided}}13}14