diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-23 22:30:09 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-23 22:30:09 +0000 |
commit | 078ee1a2a5634c74dfa730fe40be2527dbeea653 (patch) | |
tree | 6f4152100de3064b423752c45e6522999ef5a7ef /libstdc++-v3 | |
parent | f01296c39cd412be6672e98ba61ff61b1a6e0a3b (diff) | |
download | gcc-078ee1a2a5634c74dfa730fe40be2527dbeea653.tar.gz |
2007-03-23 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/4402.cc:
Likewise use std::numeric_limits<>::max().
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc:
Minor tweaks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123165 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc | 7 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/4402.cc | 6 |
2 files changed, 7 insertions, 6 deletions
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 157fc19e84a..a44837c8d43 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,8 @@ // 1999-11-15 Kevin Ediger <kediger@licor.com> // test the floating point inserters (facet num_put) -// Copyright (C) 1999, 2002, 2003, 2005, 2007 Free Software Foundation, Inc. +// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 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 +34,7 @@ test02() bool test __attribute__((unused)) = true; // make sure we can output a very long float - long double val = std::numeric_limits<long double>::max(); + long double val = numeric_limits<long double>::max(); int prec = numeric_limits<long double>::digits10; ostringstream os; @@ -51,7 +52,7 @@ test02() // Make sure we can output a long float in fixed format // without seg-faulting (libstdc++/4402) - double val2 = std::numeric_limits<double>::max(); + double val2 = numeric_limits<double>::max(); ostringstream os2; os2.precision(3); diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/4402.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/4402.cc index cdcdd00f230..c98f3cb267a 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/4402.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/4402.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2005 Free Software Foundation, Inc. +// Copyright (C) 2005, 2006, 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 @@ -30,7 +30,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 = numeric_limits<long double>::max(); int prec = numeric_limits<long double>::digits10; wostringstream os; @@ -48,7 +48,7 @@ test02() // Make sure we can output a long float in fixed format // without seg-faulting (libstdc++/4402) - double val2 = 3.5e230; + double val2 = numeric_limits<double>::max(); wostringstream os2; os2.precision(3); |