From 7165791eb50fbb2668da90724bc115a524b3cd54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Dumont?= Date: Wed, 1 Dec 2010 21:51:38 +0100 Subject: [PATCH] 2.cc: Fix to explicitely invoke the copy construtor with or without C++0x mode. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2010-12-01 François Dumont * testsuite/23_containers/deque/cons/2.cc: Fix to explicitely invoke the copy construtor with or without C++0x mode. * testsuite/23_containers/vector/cons/4.cc: Likewise. From-SVN: r167355 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/testsuite/23_containers/deque/cons/2.cc | 3 ++- libstdc++-v3/testsuite/23_containers/vector/cons/4.cc | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6e7b5255c25c..933fb231b2e8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2010-12-01 François Dumont + + * testsuite/23_containers/deque/cons/2.cc: Fix to explicitely invoke + the copy construtor with or without C++0x mode. + * testsuite/23_containers/vector/cons/4.cc: Likewise. + 2010-12-01 Rainer Orth * scripts/extract_symvers.pl: New file. diff --git a/libstdc++-v3/testsuite/23_containers/deque/cons/2.cc b/libstdc++-v3/testsuite/23_containers/deque/cons/2.cc index 23600284e72b..4df44f8eb72e 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/cons/2.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/cons/2.cc @@ -454,7 +454,8 @@ test_default_ctor_exception_safety() // test try { - X a(7); + T ref; + X a(7, ref); VERIFY( false ); } catch (...) diff --git a/libstdc++-v3/testsuite/23_containers/vector/cons/4.cc b/libstdc++-v3/testsuite/23_containers/vector/cons/4.cc index 0c3dcf3b4692..27d496ac9618 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/cons/4.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/cons/4.cc @@ -50,7 +50,8 @@ test_default_ctor_exception_gurantee() // run test try { - X a(7); + T ref; + X a(7, ref); VERIFY(false); } catch (...) -- 2.43.5