From 36a9902dcdf8e5c723cb09cf05ec0231f5cf8aef Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 27 Apr 2011 01:17:01 -0400 Subject: [PATCH] * g++.dg/cpp0x/initlist48.C: New. From-SVN: r173005 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/cpp0x/initlist48.C | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/initlist48.C 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}}; -- 2.30.2