summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/libstdc++-prettyprinters
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2015-11-26 16:25:55 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2015-11-26 16:25:55 +0000
commit5930d87a2dc582cb17e446ead8487c485bc2ea7d (patch)
tree1cdea066824770bbb00b72d32d1ede96221a7cb8 /libstdc++-v3/testsuite/libstdc++-prettyprinters
parente7f7330fede03f26c6a3d03c09c872d5f5ed7c32 (diff)
downloadgcc-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/testsuite/libstdc++-prettyprinters')
-rw-r--r--libstdc++-v3/testsuite/libstdc++-prettyprinters/debug.cc7
1 files changed, 5 insertions, 2 deletions
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;