diff options
author | François Dumont <francois.cppdevs@free.fr> | 2010-12-01 21:51:38 +0100 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2010-12-01 20:51:38 +0000 |
commit | 7165791eb50fbb2668da90724bc115a524b3cd54 (patch) | |
tree | 47e83a3472ca158938c903b116e0f13e4171d9b8 /libstdc++-v3 | |
parent | 2f64ad0f489655149283b223290522a4709d0e94 (diff) | |
download | gcc-7165791eb50fbb2668da90724bc115a524b3cd54.tar.gz |
2.cc: Fix to explicitely invoke the copy construtor with or without C++0x mode.
2010-12-01 François Dumont <francois.cppdevs@free.fr>
* 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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/23_containers/deque/cons/2.cc | 3 | ||||
-rw-r--r-- | 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 6e7b5255c25..933fb231b2e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2010-12-01 François Dumont <francois.cppdevs@free.fr> + + * 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 <ro@CeBiTec.Uni-Bielefeld.DE> * 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 23600284e72..4df44f8eb72 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 0c3dcf3b469..27d496ac961 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 (...) |