Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
eh
/
dtor3.C
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
();
}