mirror of git://gcc.gnu.org/git/gcc.git
parent
6d69c02ecb
commit
36a9902dcd
|
@ -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.
|
||||
|
|
|
@ -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}};
|
Loading…
Reference in New Issue