diff options
Diffstat (limited to 'clang/test/CXX/class.access/p4.cpp')
| -rw-r--r-- | clang/test/CXX/class.access/p4.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CXX/class.access/p4.cpp b/clang/test/CXX/class.access/p4.cpp index c1c5199ad45..552c52f977e 100644 --- a/clang/test/CXX/class.access/p4.cpp +++ b/clang/test/CXX/class.access/p4.cpp @@ -420,3 +420,9 @@ namespace test15 { template class B<int>; // expected-note {{in instantiation}} template class B<long>; // expected-note 4 {{in instantiation}} } + +// PR7281 +namespace test16 { + class A { ~A(); }; // expected-note {{declared private here}} + void b() { throw A(); } // expected-error{{temporary of type 'test16::A' has private destructor}} +} |

