diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-07-18 14:32:15 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-07-18 14:32:15 +0000 |
commit | e644e1967151ec718e9b1eb5470e3705fc987413 (patch) | |
tree | bf91acfcdfa0ee9e30739064e8b36221e255c64b /clang/test/SemaCXX/exception-spec.cpp | |
parent | 0ef680bcbdf4ef295955434e5660dbb9bac91794 (diff) | |
download | bcm5719-llvm-e644e1967151ec718e9b1eb5470e3705fc987413.tar.gz bcm5719-llvm-e644e1967151ec718e9b1eb5470e3705fc987413.zip |
Enhance testing of overriding exception specs for inaccessible base exceptions.
llvm-svn: 76317
Diffstat (limited to 'clang/test/SemaCXX/exception-spec.cpp')
-rw-r--r-- | clang/test/SemaCXX/exception-spec.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/exception-spec.cpp b/clang/test/SemaCXX/exception-spec.cpp index dd12f3032fb..443cee98e86 100644 --- a/clang/test/SemaCXX/exception-spec.cpp +++ b/clang/test/SemaCXX/exception-spec.cpp @@ -78,6 +78,10 @@ struct D : B1, B2 { }; +struct P : private A +{ +}; + struct Base { virtual void f1() throw(); @@ -94,6 +98,7 @@ struct Base virtual void g2() throw(int); // expected-note {{overridden virtual function is here}} virtual void g3() throw(A); // expected-note {{overridden virtual function is here}} virtual void g4() throw(B1); // expected-note {{overridden virtual function is here}} + virtual void g5() throw(A); // expected-note {{overridden virtual function is here}} }; struct Derived : Base { @@ -111,4 +116,5 @@ struct Derived : Base virtual void g2(); // expected-error {{exception specification of overriding function is more lax}} virtual void g3() throw(D); // expected-error {{exception specification of overriding function is more lax}} virtual void g4() throw(A); // expected-error {{exception specification of overriding function is more lax}} + virtual void g5() throw(P); // expected-error {{exception specification of overriding function is more lax}} }; |