1 // RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -emit-llvm-only -disable-llvm-passes -verify
3 double test_too_few_arg() {
4 return __builtin_hlsl_asdouble();
5 // expected-error@-1 {{too few arguments to function call, expected 2, have 0}}
8 double test_too_few_arg_1(uint p0) {
9 return __builtin_hlsl_asdouble(p0);
10 // expected-error@-1 {{too few arguments to function call, expected 2, have 1}}
13 double test_too_many_arg(uint p0) {
14 return __builtin_hlsl_asdouble(p0, p0, p0);
15 // expected-error@-1 {{too many arguments to function call, expected 2, have 3}}