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