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