Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-throw1.C
blob: 264c6c7a7a0100ca3d8c46f0c140c4b9107e74cf [
file
] [
log
] [
blame
]
// PR c++/85363
// { dg-do run { target c++11 } }
int
init
(
int
f
)
{
throw
f
;
}
struct
X
{
X
(
int
f
)
:
n
{
init
(
f
)}
{}
int
n
;
};
struct
P
{
X x
{
20
};
};
int
main
()
{
try
{
P p
{};
}
catch
(
int
n
)
{
return
0
;
}
return
1
;
}