From 5930d87a2dc582cb17e446ead8487c485bc2ea7d Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 26 Nov 2015 16:25:55 +0000 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 3 +++ 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 + * 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 const_intset = {2, 3}; + std::set intset; + intset.insert(2); + intset.insert(3); + const std::set const_intset = intset; // { dg-final { note-test const_intset {std::__debug::set with 2 elements = {[0] = 2, [1] = 3}} } } std::set sp; -- 2.30.2