* g++.dg/cpp0x/initlist48.C: New.

From-SVN: r173005
This commit is contained in:
Jason Merrill 2011-04-27 01:17:01 -04:00 committed by Jason Merrill
parent 6d69c02ecb
commit 36a9902dcd
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-04-26 Jason Merrill <jason@redhat.com>
* g++.dg/cpp0x/initlist48.C: New.
2011-04-25 Jason Merrill <jason@redhat.com>
* g++.dg/cpp0x/sfinae17.C: New.

View File

@ -0,0 +1,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}};