|
1 |
| -// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm-only -disable-llvm-passes -verify |
| 1 | +// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note |
2 | 2 |
|
3 |
| -float4 test_no_second_arg(float p0) { |
4 |
| - return lit(p0); |
5 |
| - // expected-error@-1 {{no matching function for call to 'lit'}} |
6 |
| - // expected-note@hlsl/hlsl_compat_overloads.h:* {{candidate function template not viable: requires 3 arguments, but 1 was provided}} |
7 |
| -} |
8 |
| - |
9 |
| -float4 test_no_third_arg(float p0) { |
10 |
| - return lit(p0, p0); |
11 |
| - // expected-error@-1 {{no matching function for call to 'lit'}} |
12 |
| - // expected-note@hlsl/hlsl_compat_overloads.h:* {{candidate function template not viable: requires 3 arguments, but 2 were provided}} |
13 |
| -} |
14 |
| - |
15 |
| -float4 test_too_many_arg(float p0) { |
16 |
| - return lit(p0, p0, p0, p0); |
17 |
| - // expected-error@-1 {{no matching function for call to 'lit'}} |
18 |
| - // expected-note@hlsl/hlsl_compat_overloads.h:* {{candidate function template not viable: requires 3 arguments, but 4 were provided}} |
| 3 | +float4 test_double_inputs(double p0, double p1, double p2) { |
| 4 | + return lit(p0, p1, p2); |
| 5 | + // expected-error@-1 {{call to 'lit' is ambiguous}} |
19 | 6 | }
|
20 | 7 |
|
21 |
| -float4 test_vec_inputs(float2 p0, float2 p1, float2 p2) { |
| 8 | +float4 test_int_inputs(int p0, int p1, int p2) { |
22 | 9 | return lit(p0, p1, p2);
|
23 |
| - // expected-error@-1 {{no matching function for call to 'lit'}} |
24 |
| - // expected-note@hlsl/hlsl_compat_overloads.h:* {{candidate template ignored: substitution failure [with T = float2]: invalid vector element type 'vector<float, 2>' (vector of 2 'float' values)}} |
| 10 | + // expected-error@-1 {{call to 'lit' is ambiguous}} |
25 | 11 | }
|
26 | 12 |
|
27 |
| -float4 test_vec1_inputs(float1 p0, float1 p1, float1 p2) { |
| 13 | +float4 test_bool_inputs(bool p0, bool p1, bool p2) { |
28 | 14 | return lit(p0, p1, p2);
|
29 |
| - // expected-error@-1 {{no matching function for call to 'lit'}} |
30 |
| - // expected-note@hlsl/hlsl_compat_overloads.h:* {{candidate template ignored: substitution failure [with T = float1]: invalid vector element type 'vector<float, 1>' (vector of 1 'float' value)}} |
| 15 | + // expected-error@-1 {{call to 'lit' is ambiguous}} |
31 | 16 | }
|
0 commit comments