Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist59.C
blob: 6371c165025ea92c328478e0d08b835a1ca44abb [
file
] [
log
] [
blame
]
// PR c++/49996
// { dg-do compile { target c++11 } }
struct
A
{
~
A
()
{
}
};
struct
B
{
const
A
&
ref
;
};
int
main
()
{
B
*
p
=
new
B
{
A
()};
}