Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
)
{
}
}