|
3 | 3 | float4 test_no_second_arg(float p0) {
|
4 | 4 | return lit(p0);
|
5 | 5 | // expected-error@-1 {{no matching function for call to 'lit'}}
|
6 |
| - // expected-note@hlsl/hlsl_intrinsics.h:* {{candidate function template not viable: requires 3 arguments, but 1 was provided}} |
7 |
| - // expected-note@hlsl/hlsl_intrinsics.h:* {{candidate function template not viable: requires 3 arguments, but 1 was provided}} |
8 | 6 | // expected-note@hlsl/hlsl_compat_overloads.h:* {{candidate function template not viable: requires 3 arguments, but 1 was provided}}
|
9 | 7 | }
|
10 | 8 |
|
11 | 9 | float4 test_no_third_arg(float p0) {
|
12 | 10 | return lit(p0, p0);
|
13 | 11 | // expected-error@-1 {{no matching function for call to 'lit'}}
|
14 |
| - // expected-note@hlsl/hlsl_intrinsics.h:* {{candidate function template not viable: requires 3 arguments, but 2 were provided}} |
15 |
| - // expected-note@hlsl/hlsl_intrinsics.h:* {{candidate function template not viable: requires 3 arguments, but 2 were provided}} |
16 | 12 | // expected-note@hlsl/hlsl_compat_overloads.h:* {{candidate function template not viable: requires 3 arguments, but 2 were provided}}
|
17 | 13 | }
|
18 | 14 |
|
19 | 15 | float4 test_too_many_arg(float p0) {
|
20 | 16 | return lit(p0, p0, p0, p0);
|
21 | 17 | // expected-error@-1 {{no matching function for call to 'lit'}}
|
22 |
| - // expected-note@hlsl/hlsl_intrinsics.h:* {{candidate function template not viable: requires 3 arguments, but 4 were provided}} |
23 |
| - // expected-note@hlsl/hlsl_intrinsics.h:* {{candidate function template not viable: requires 3 arguments, but 4 were provided}} |
24 | 18 | // expected-note@hlsl/hlsl_compat_overloads.h:* {{candidate function template not viable: requires 3 arguments, but 4 were provided}}
|
25 | 19 | }
|
26 | 20 |
|
27 | 21 | float4 test_vec_inputs(float2 p0, float2 p1, float2 p2) {
|
28 | 22 | return lit(p0, p1, p2);
|
29 | 23 | // expected-error@-1 {{no matching function for call to 'lit'}}
|
30 |
| - // expected-note@hlsl/hlsl_intrinsics.h:* {{candidate template ignored: substitution failure [with T = float2]: invalid vector element type 'vector<float, 2>' (vector of 2 'float' values)}} |
31 |
| - // expected-note@hlsl/hlsl_intrinsics.h:* {{candidate template ignored: substitution failure [with T = float2]: invalid vector element type 'vector<float, 2>' (vector of 2 'float' values)}} |
32 | 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)}}
|
33 | 25 | }
|
34 | 26 |
|
35 | 27 | float4 test_vec1_inputs(float1 p0, float1 p1, float1 p2) {
|
36 | 28 | return lit(p0, p1, p2);
|
37 | 29 | // expected-error@-1 {{no matching function for call to 'lit'}}
|
38 |
| - // expected-note@hlsl/hlsl_intrinsics.h:* {{candidate template ignored: substitution failure [with T = float1]: invalid vector element type 'vector<float, 1>' (vector of 1 'float' value)}} |
39 |
| - // expected-note@hlsl/hlsl_intrinsics.h:* {{candidate template ignored: substitution failure [with T = float1]: invalid vector element type 'vector<float, 1>' (vector of 1 'float' value)}} |
40 | 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)}}
|
41 | 31 | }
|
0 commit comments