blob: 3ce42d9f16d6f174358ab2df0e3097984e842309 [file] [log] [blame]
// Red Hat bug 750545
// { dg-do run { target { ! c++11 } } }
class excep {};
class A
{
public:
~A() { throw excep(); }
};
class B
{
A a;
};
class C
{
B b;
};
void f()
{
C* c = new C();
try
{
delete c;
}
catch(...)
{}
}
int main()
{
f();
}