diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2015-11-26 16:25:55 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2015-11-26 16:25:55 +0000 |
commit | 5930d87a2dc582cb17e446ead8487c485bc2ea7d (patch) | |
tree | 1cdea066824770bbb00b72d32d1ede96221a7cb8 /libstdc++-v3 | |
parent | e7f7330fede03f26c6a3d03c09c872d5f5ed7c32 (diff) | |
download | gcc-5930d87a2dc582cb17e446ead8487c485bc2ea7d.tar.gz |
Ensure another pretty-printer test uses C++98 mode
* testsuite/libstdc++-prettyprinters/debug.cc: Add -std=gnu++98 to
dg-options and avoid use of uniform-init.
From-SVN: r230977
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 3 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/libstdc++-prettyprinters/debug.cc | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 606349320cd..19aea8437d0 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2015-11-26 Jonathan Wakely <jwakely@redhat.com> + * testsuite/libstdc++-prettyprinters/debug.cc: Add -std=gnu++98 to + dg-options and avoid use of uniform-init. + * testsuite/libstdc++-prettyprinters/simple.cc: Add -std=gnu++98 to dg-options and avoid use of uniform-init. diff --git a/libstdc++-v3/testsuite/libstdc++-prettyprinters/debug.cc b/libstdc++-v3/testsuite/libstdc++-prettyprinters/debug.cc index 8d40f174fd9..046888f77cd 100644 --- a/libstdc++-v3/testsuite/libstdc++-prettyprinters/debug.cc +++ b/libstdc++-v3/testsuite/libstdc++-prettyprinters/debug.cc @@ -1,5 +1,5 @@ // { dg-do run } -// { dg-options "-g -O0" } +// { dg-options "-g -O0 -std=gnu++98" } // Copyright (C) 2011-2015 Free Software Foundation, Inc. // @@ -71,7 +71,10 @@ main() // { dg-final { note-test mpiter {{first = "zardoz", second = 23}} } } // PR 67440 - const std::set<int> const_intset = {2, 3}; + std::set<int> intset; + intset.insert(2); + intset.insert(3); + const std::set<int> const_intset = intset; // { dg-final { note-test const_intset {std::__debug::set with 2 elements = {[0] = 2, [1] = 3}} } } std::set<std::string> sp; |