* g++.dg/cpp0x/initlist48.C: New.
authorJason Merrill <jason@redhat.com>
Wed, 27 Apr 2011 05:17:01 +0000 (01:17 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 27 Apr 2011 05:17:01 +0000 (01:17 -0400)
From-SVN: r173005

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist48.C [new file with mode: 0644]

index 0a59e372af71d0faeb63d56852a623f2f3d2c232..f95a2113f7a967167ea6f12d640fa837ee98d3a8 100644 (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.
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist48.C b/gcc/testsuite/g++.dg/cpp0x/initlist48.C
new file mode 100644 (file)
index 0000000..9eb451a
--- /dev/null
@@ -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}};