Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr94616.C
blob: a8fe700a9db477e69dc81390331e000ebebb93f8 [
file
] [
log
] [
blame
]
// PR c++/94616
// { dg-do compile { target c++11 } }
struct
Bar
{
Bar
(
int
n
)
{
if
(
n
>
0
)
throw
2
;
}
~
Bar
()
{}
};
struct
Foo
{
Bar
b1
=
0
;
Bar
b2
=
1
;
Foo
()
{}
~
Foo
()
{}
};
int
main
()
{
try
{
Foo
f
;
}
catch
(
int
)
{
}
}