xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/throw-expression-dtor.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm-only -verify -triple %itanium_abi_triple -fcxx-exceptions -fexceptions
2f4a2713aSLionel Sambuc // expected-no-diagnostics
3f4a2713aSLionel Sambuc // PR7281
4f4a2713aSLionel Sambuc 
5f4a2713aSLionel Sambuc class A {
6f4a2713aSLionel Sambuc public:
7f4a2713aSLionel Sambuc     ~A();
8f4a2713aSLionel Sambuc };
9f4a2713aSLionel Sambuc class B : public A {
10f4a2713aSLionel Sambuc     void ice_throw();
11f4a2713aSLionel Sambuc };
ice_throw()12f4a2713aSLionel Sambuc void B::ice_throw() {
13f4a2713aSLionel Sambuc     throw *this;
14f4a2713aSLionel Sambuc }
15