File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ void trys() {
12
12
} catch (float i) {
13
13
} catch (void v) { // expected-error {{cannot catch incomplete type 'void'}}
14
14
} catch (A a) { // expected-error {{cannot catch incomplete type 'struct A'}}
15
- } catch (A *a) { // expected-warning {{pointer to incomplete type 'struct A'}}
16
- } catch (A &a) { // expected-warning {{reference to incomplete type 'struct A'}}
15
+ } catch (A *a) { // expected-error {{cannot catch pointer to incomplete type 'struct A'}}
16
+ } catch (A &a) { // expected-error {{cannot catch reference to incomplete type 'struct A'}}
17
17
} catch (Abstract) { // expected-error {{variable type 'Abstract' is an abstract class}}
18
18
} catch (...) {
19
19
int j = i; // expected-error {{use of undeclared identifier 'i'}}
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ template struct IndirectGoto0<int>; // expected-note{{instantiation}}
194
194
template <typename T> struct TryCatch0 {
195
195
void f () {
196
196
try {
197
- } catch (T t) { // expected-warning {{incomplete type}} \
197
+ } catch (T t) { // expected-error {{incomplete type}} \
198
198
// expected-error{{abstract class}}
199
199
} catch (...) {
200
200
}
You can’t perform that action at this time.
0 commit comments