* g++.dg/cpp0x/initlist48.C: New.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Apr 2011 05:17:01 +0000 (05:17 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Apr 2011 05:17:01 +0000 (05:17 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173005 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 0a59e37..f95a211 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}};