|
5 | 5 |
|
6 | 6 | #include "sycl.hpp" |
7 | 7 |
|
8 | | -// expected-note@+1 4 {{propagated from call to function 'Struct1::Struct1()'}} |
| 8 | +// expected-note-re@+1 4 {{propagated from call to function '{{.*}}Struct1::Struct1({{.*}})'}} |
9 | 9 | struct [[__sycl_detail__::__uses_aspects__(sycl::aspect::fp16)]] Struct1 { |
10 | 10 | int a = 0; |
11 | 11 | }; |
12 | 12 |
|
13 | | -// expected-note@+1 4 {{propagated from call to function 'func5(int)'}} |
| 13 | +// expected-note-re@+1 4 {{propagated from call to function '{{.*}}func5(int)'}} |
14 | 14 | [[__sycl_detail__::__uses_aspects__(sycl::aspect::cpu)]] int func5(int a) { |
15 | 15 | return 0; |
16 | 16 | } |
17 | 17 |
|
18 | | -// expected-note@+1 4 {{propagated from call to function 'func3(int, int, int)'}} |
| 18 | +// expected-note-re@+1 4 {{propagated from call to function '{{.*}}func3(int, int, int)'}} |
19 | 19 | int func3(int a, int b, int c) { |
20 | 20 | Struct1 s; |
21 | 21 | s.a = 1; |
22 | 22 | return s.a; |
23 | 23 | } |
24 | 24 |
|
25 | | -// expected-note@+1 4 {{propagated from call to function 'func4(int, int)'}} |
| 25 | +// expected-note-re@+1 4 {{propagated from call to function '{{.*}}func4(int, int)'}} |
26 | 26 | int func4(int a, int b) { |
27 | 27 | double x = 3.0; |
28 | 28 | return func3(a, b, (int)x); |
29 | 29 | } |
30 | 30 |
|
31 | | -// expected-note@+1 2 {{propagated from call to function 'func2(int, int)'}} |
| 31 | +// expected-note-re@+1 2 {{propagated from call to function '{{.*}}func2(int, int)'}} |
32 | 32 | int func2(int a, int b) { return func3(a, b, 1); } |
33 | 33 |
|
34 | | -// expected-warning@+1 {{function 'func1(int)' uses aspect 'fp16' not listed in its 'sycl::device_has' attribute}} |
| 34 | +// expected-warning-re@+1 {{function '{{.*}}func1(int)' uses aspect 'fp16' not listed in its 'sycl::device_has' attribute}} |
35 | 35 | [[sycl::device_has(sycl::aspect::fp64)]] int func1(int a) { return func2(a, 1); } |
36 | 36 |
|
37 | | -// expected-note@+1 4 {{propagated from call to function 'func6(int, int, int)'}} |
| 37 | +// expected-note-re@+1 4 {{propagated from call to function '{{.*}}func6(int, int, int)'}} |
38 | 38 | int func6(int a, int b, int c) { |
39 | 39 | return func5(a); |
40 | 40 | } |
41 | 41 |
|
42 | | -// expected-note@+1 4 {{propagated from call to function 'func7(int, int)'}} |
| 42 | +// expected-note-re@+1 4 {{propagated from call to function '{{.*}}func7(int, int)'}} |
43 | 43 | int func7(int a, int b) { |
44 | 44 | double x = 3.0; |
45 | 45 | return func6(a, b, (int)x); |
46 | 46 | } |
47 | 47 |
|
48 | | -// expected-note@+1 2 {{propagated from call to function 'func8(int, int)'}} |
| 48 | +// expected-note-re@+1 2 {{propagated from call to function '{{.*}}func8(int, int)'}} |
49 | 49 | int func8(int a, int b) { return func6(a, b, 1); } |
50 | 50 |
|
51 | | -// expected-warning@+1 {{function 'func9(int)' uses aspect 'cpu' not listed in its 'sycl::device_has' attribute}} |
| 51 | +// expected-warning-re@+1 {{function '{{.*}}func9(int)' uses aspect 'cpu' not listed in its 'sycl::device_has' attribute}} |
52 | 52 | [[sycl::device_has(sycl::aspect::fp64)]] int func9(int a) { return func8(a, 1); } |
53 | 53 |
|
54 | 54 | int main() { |
|
0 commit comments