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 | 726212f41bac77dc7f3352bc7047615fa0cd9e58 (patch) | |
tree | 8ee07375e36b17ddfa5c75f87cc21ff1a7f7d70f /test/SemaCXX/exception-spec.cpp | |
parent | 089962112ebbb730dfe18c104566bcf9810b341e (diff) |
Enhance testing of overriding exception specs for inaccessible base exceptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/exception-spec.cpp')
-rw-r--r-- | test/SemaCXX/exception-spec.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/exception-spec.cpp b/test/SemaCXX/exception-spec.cpp index dd12f3032f..443cee98e8 100644 --- a/test/SemaCXX/exception-spec.cpp +++ b/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}} }; |