Commit adee67b3 by Jason Merrill Committed by Jason Merrill

* g++.dg/eh/dtor3.C: New.

From-SVN: r186344
parent a66dc285
2012-04-11 Jason Merrill <jason@redhat.com>
* g++.dg/eh/dtor3.C: New.
2012-04-11 Richard Guenther <rguenther@suse.de>
PR middle-end/52621
......
// Red Hat bug 750545
// { dg-do run { target c++98 } }
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();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment