Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;
}