diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2015-11-26 15:42:47 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2015-11-26 15:42:47 +0000 |
commit | 43a2362b94f05865d77a029ecca7a18da4d5a7e1 (patch) | |
tree | 520ff562aa98454fcc77ad5566d6fc679091589b /libstdc++-v3 | |
parent | 50469f7503ebb8ad057f18d32ba80307433b9a42 (diff) | |
download | gcc-43a2362b94f05865d77a029ecca7a18da4d5a7e1.zip gcc-43a2362b94f05865d77a029ecca7a18da4d5a7e1.tar.gz gcc-43a2362b94f05865d77a029ecca7a18da4d5a7e1.tar.bz2 |
Ensure pretty-printer test uses C++98 mode
* testsuite/libstdc++-prettyprinters/simple.cc: Add -std=gnu++98 to
dg-options and avoid use of uniform-init.
From-SVN: r230973
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e67687a..6063493 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2015-11-26 Jonathan Wakely <jwakely@redhat.com> + + * testsuite/libstdc++-prettyprinters/simple.cc: Add -std=gnu++98 to + dg-options and avoid use of uniform-init. + 2015-11-26 David Edelsohn <dje.gcc@gmail.com> * configure: Regenerate. diff --git a/libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc b/libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc index 68c4d83..e1956bf 100644 --- a/libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc +++ b/libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc @@ -1,7 +1,7 @@ // If you modify this, please update simple11.cc and debug.cc as well. // { dg-do run } -// { dg-options "-g -O0" } +// { dg-options "-g -O0 -std=gnu++98" } // Copyright (C) 2011-2015 Free Software Foundation, Inc. // @@ -74,7 +74,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::set with 2 elements = {[0] = 2, [1] = 3}} } } std::set<std::string> sp; |