From: Jason Merrill Date: Wed, 27 Apr 2011 05:17:01 +0000 (-0400) Subject: * g++.dg/cpp0x/initlist48.C: New. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36a9902dcdf8e5c723cb09cf05ec0231f5cf8aef;p=gcc.git * g++.dg/cpp0x/initlist48.C: New. From-SVN: r173005 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0a59e372af7..f95a2113f7a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-04-26 Jason Merrill + + * g++.dg/cpp0x/initlist48.C: New. + 2011-04-25 Jason Merrill * g++.dg/cpp0x/sfinae17.C: New. diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist48.C b/gcc/testsuite/g++.dg/cpp0x/initlist48.C new file mode 100644 index 00000000000..9eb451a8277 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/initlist48.C @@ -0,0 +1,11 @@ +// PR c++/48726 +// { dg-options -std=c++0x } + +#include + +struct Foo{ + int i; +}; +typedef std::unique_ptr up; + +std::initializer_list il{up{new Foo}, up{new Foo}};