throw-expression-dtor.cpp revision 5ed9b93c596c3926b6680b47de28c8ff6a8ff4b7
1// RUN: %clang_cc1 %s -emit-llvm-only -verify
2// PR7281
3
4class A {
5public:
6    ~A();
7};
8class B : public A {
9    void ice_throw();
10};
11void B::ice_throw() {
12    throw *this;
13}
14
15