Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist48.C
blob: cd9027e3aad3687fe45baca816f6d9ed3133b83e [
file
] [
log
] [
blame
]
// PR c++/48726
// { dg-do compile { target c++11 } }
#include
<memory>
#include
<initializer_list>
struct
Foo
{
int
i
;
};
typedef
std
::
unique_ptr
<
Foo
>
up
;
std
::
initializer_list
<up>
il
{
up
{
new
Foo
},
up
{
new
Foo
}};