summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/exceptions.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-03-08 00:41:19 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-03-08 00:41:19 +0000
commit3681e58d8b61134d81be28ad19e89d2f54f38f19 (patch)
tree3496c918af923809ebd22717c627ca1b41b75090 /clang/test/SemaCXX/exceptions.cpp
parent254bba409557a721b294f0ce064fb3e7744fc394 (diff)
downloadbcm5719-llvm-3681e58d8b61134d81be28ad19e89d2f54f38f19.tar.gz
bcm5719-llvm-3681e58d8b61134d81be28ad19e89d2f54f38f19.zip
Revert r97925, it only contained the test updates not the actual fix.
llvm-svn: 97926
Diffstat (limited to 'clang/test/SemaCXX/exceptions.cpp')
-rw-r--r--clang/test/SemaCXX/exceptions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/exceptions.cpp b/clang/test/SemaCXX/exceptions.cpp
index ab37e3c6446..924b48aad26 100644
--- a/clang/test/SemaCXX/exceptions.cpp
+++ b/clang/test/SemaCXX/exceptions.cpp
@@ -12,8 +12,8 @@ void trys() {
} catch(float i) {
} catch(void v) { // expected-error {{cannot catch incomplete type 'void'}}
} catch(A a) { // expected-error {{cannot catch incomplete type 'struct A'}}
- } catch(A *a) { // expected-warning {{pointer to incomplete type 'struct A'}}
- } catch(A &a) { // expected-warning {{reference to incomplete type 'struct A'}}
+ } catch(A *a) { // expected-error {{cannot catch pointer to incomplete type 'struct A'}}
+ } catch(A &a) { // expected-error {{cannot catch reference to incomplete type 'struct A'}}
} catch(Abstract) { // expected-error {{variable type 'Abstract' is an abstract class}}
} catch(...) {
int j = i; // expected-error {{use of undeclared identifier 'i'}}
OpenPOWER on IntegriCloud