Skip to content

Commit 3681e58

Browse files
committed
Revert r97925, it only contained the test updates not the actual fix.
llvm-svn: 97926
1 parent 254bba4 commit 3681e58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/test/SemaCXX/exceptions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ void trys() {
1212
} catch(float i) {
1313
} catch(void v) { // expected-error {{cannot catch incomplete type 'void'}}
1414
} 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'}}
1717
} catch(Abstract) { // expected-error {{variable type 'Abstract' is an abstract class}}
1818
} catch(...) {
1919
int j = i; // expected-error {{use of undeclared identifier 'i'}}

clang/test/SemaTemplate/instantiate-function-1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ template struct IndirectGoto0<int>; // expected-note{{instantiation}}
194194
template<typename T> struct TryCatch0 {
195195
void f() {
196196
try {
197-
} catch (T t) { // expected-warning{{incomplete type}} \
197+
} catch (T t) { // expected-error{{incomplete type}} \
198198
// expected-error{{abstract class}}
199199
} catch (...) {
200200
}

0 commit comments

Comments
 (0)