summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-23 19:37:28 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-23 19:37:28 +0000
commit34e7d7fea2eb9cc2dbc81a7d3ada86de472346e5 (patch)
tree151fffa67dbc1816c0455e8a1e13e9abed3211db
parente00b21424f1b27ce0822f915a07174ff3ba85680 (diff)
downloadppe42-gcc-34e7d7fea2eb9cc2dbc81a7d3ada86de472346e5.tar.gz
ppe42-gcc-34e7d7fea2eb9cc2dbc81a7d3ada86de472346e5.zip
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc
(test02): Use std::numeric_limits<>::max() to get suitable large values. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123163 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc6
2 files changed, 9 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index fea34d7b5a1..ae884a1aa4a 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2007-03-23 Hans-Peter Nilsson <hp@axis.com>
+
+ * testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc
+ (test02): Use std::numeric_limits<>::max() to get suitable large
+ values.
+
2007-03-22 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/21_strings/headers/cstdlib/functions_std.cc: Without
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc
index 00a6a7962aa..157fc19e84a 100644
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc
@@ -1,7 +1,7 @@
// 1999-11-15 Kevin Ediger <kediger@licor.com>
// test the floating point inserters (facet num_put)
-// Copyright (C) 1999, 2002, 2003, 2005 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2002, 2003, 2005, 2007 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -33,7 +33,7 @@ test02()
bool test __attribute__((unused)) = true;
// make sure we can output a very long float
- long double val = 1.2345678901234567890123456789e+1000L;
+ long double val = std::numeric_limits<long double>::max();
int prec = numeric_limits<long double>::digits10;
ostringstream os;
@@ -51,7 +51,7 @@ test02()
// Make sure we can output a long float in fixed format
// without seg-faulting (libstdc++/4402)
- double val2 = 3.5e230;
+ double val2 = std::numeric_limits<double>::max();
ostringstream os2;
os2.precision(3);
OpenPOWER on IntegriCloud