Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
eh
/
ctor-fntry1.C
blob: 0c783bb45ee769f2cf35c122d06c97c6110e96d0 [
file
] [
log
] [
blame
]
// PR c++/61611
// { dg-do run }
struct
A
{
};
struct
B
{
};
struct
Test
{
Test
()
try
{
throw
A
();
}
catch
(
const
A
&)
{
try
{
throw
B
();
}
catch
(
const
B
&)
{
}
}
};
int
main
()
{
try
{
Test
x
;
}
catch
(
const
A
&)
{
}
}