aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/initlist48.C
blob: 9eb451a8277c3c2dfaa6ee3531456ce9b4f2ec99 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/48726
// { dg-options -std=c++0x }

#include <memory>

struct Foo{
    int i;
};
typedef std::unique_ptr<Foo> up;

std::initializer_list<up> il{up{new Foo}, up{new Foo}};