From: redi Date: Thu, 26 Nov 2015 16:25:55 +0000 (+0000) Subject: Ensure another pretty-printer test uses C++98 mode X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0b353b0b0ce2199d9486695573b458d1c35ef91;p=thirdparty%2Fgcc.git 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230977 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 606349320cdb..19aea8437d00 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 8d40f174fd9b..046888f77cd9 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;