Skip to content

Commit d95e353

Browse files
[SYCL] Fix aspect propagation warning test on Windows (#7299)
The warning diagnostics produced for device_has with mismatching used aspects is slightly different on Windows. This commit changes the sycl-propagate-aspect-warning test to pass on Windows testing. Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
1 parent 1fa1416 commit d95e353

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

clang/test/Frontend/sycl-propagate-aspect-warning.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,50 @@
55

66
#include "sycl.hpp"
77

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({{.*}})'}}
99
struct [[__sycl_detail__::__uses_aspects__(sycl::aspect::fp16)]] Struct1 {
1010
int a = 0;
1111
};
1212

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)'}}
1414
[[__sycl_detail__::__uses_aspects__(sycl::aspect::cpu)]] int func5(int a) {
1515
return 0;
1616
}
1717

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)'}}
1919
int func3(int a, int b, int c) {
2020
Struct1 s;
2121
s.a = 1;
2222
return s.a;
2323
}
2424

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)'}}
2626
int func4(int a, int b) {
2727
double x = 3.0;
2828
return func3(a, b, (int)x);
2929
}
3030

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)'}}
3232
int func2(int a, int b) { return func3(a, b, 1); }
3333

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}}
3535
[[sycl::device_has(sycl::aspect::fp64)]] int func1(int a) { return func2(a, 1); }
3636

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)'}}
3838
int func6(int a, int b, int c) {
3939
return func5(a);
4040
}
4141

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)'}}
4343
int func7(int a, int b) {
4444
double x = 3.0;
4545
return func6(a, b, (int)x);
4646
}
4747

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)'}}
4949
int func8(int a, int b) { return func6(a, b, 1); }
5050

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}}
5252
[[sycl::device_has(sycl::aspect::fp64)]] int func9(int a) { return func8(a, 1); }
5353

5454
int main() {

0 commit comments

Comments
 (0)