You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
S(int a) : a(a) { throw1; } // expected-warning {{target 'nvptx64-unknown-unknown' does not support exception handling; 'throw' is assumed to be never reached}}
53
+
S(int a) : a(a) { throw1; } // expected-warning-re {{target '{{.*}}' does not support exception handling; 'throw' is assumed to be never reached}}
38
54
};
39
55
40
56
intfoo() { return0; }
@@ -57,7 +73,7 @@ int maini1() {
57
73
staticlong aaa = 23;
58
74
a = foo() + bar() + b + c + d + aa + aaa + FA<int>(); // expected-note{{called by 'maini1'}}
59
75
if (!a)
60
-
throw"Error"; // expected-warning {{target 'nvptx64-unknown-unknown' does not support exception handling; 'throw' is assumed to be never reached}}
76
+
throw"Error"; // expected-warning-re {{target '{{.*}}' does not support exception handling; 'throw' is assumed to be never reached}}
61
77
}
62
78
} catch(...) {
63
79
}
@@ -67,14 +83,14 @@ int maini1() {
67
83
intbaz3() { return2 + baz2(); }
68
84
intbaz2() {
69
85
#pragma omp target
70
-
try { // expected-warning {{target 'nvptx64-unknown-unknown' does not support exception handling; 'catch' block is ignored}}
86
+
try { // expected-warning-re {{target '{{.*}}' does not support exception handling; 'catch' block is ignored}}
71
87
++c;
72
88
} catch (...) {
73
89
}
74
90
return2 + baz3();
75
91
}
76
92
77
-
intbaz1() { throw1; } // expected-warning {{target 'nvptx64-unknown-unknown' does not support exception handling; 'throw' is assumed to be never reached}}
93
+
intbaz1() { throw1; } // expected-warning-re {{target '{{.*}}' does not support exception handling; 'throw' is assumed to be never reached}}
78
94
79
95
intfoobar1();
80
96
intfoobar2();
@@ -85,7 +101,7 @@ int (*B)() = &foobar2;
85
101
#pragma omp end declare target
86
102
87
103
intfoobar1() { throw1; }
88
-
intfoobar2() { throw1; } // expected-warning {{target 'nvptx64-unknown-unknown' does not support exception handling; 'throw' is assumed to be never reached}}
104
+
intfoobar2() { throw1; } // expected-warning-re {{target '{{.*}}' does not support exception handling; 'throw' is assumed to be never reached}}
89
105
90
106
91
107
intfoobar3();
@@ -95,7 +111,7 @@ int (*C)() = &foobar3; // expected-warning {{declaration is not declared in any
95
111
int (*D)() = C; // expected-note {{used here}}
96
112
// host-note@-1 {{used here}}
97
113
#pragma omp end declare target
98
-
intfoobar3() { throw1; } // expected-warning {{target 'nvptx64-unknown-unknown' does not support exception handling; 'throw' is assumed to be never reached}}
114
+
intfoobar3() { throw1; } // expected-warning-re {{target '{{.*}}' does not support exception handling; 'throw' is assumed to be never reached}}
99
115
100
116
// Check no infinite recursion in deferred diagnostic emitter.
0 commit comments