Ensure pretty-printer test uses C++98 mode
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Nov 2015 15:42:47 +0000 (15:42 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Nov 2015 15:42:47 +0000 (15:42 +0000)
* testsuite/libstdc++-prettyprinters/simple.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@230973 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc

index e67687a..6063493 100644 (file)
@@ -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.
index 68c4d83..e1956bf 100644 (file)
@@ -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;