From 082e1a1b81a54bc1266c75bce7d52d2c20148eb3 Mon Sep 17 00:00:00 2001 From: paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Sun, 4 Jan 2004 23:19:00 +0000 Subject: [PATCH] 2003-01-04 Paolo Carlini <pcarlini@suse.de> * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Remove redundant #includes. * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75398 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 29 +++++++++++++++++++ .../extractors_arithmetic/char/01.cc | 1 - .../extractors_arithmetic/char/02.cc | 2 -- .../extractors_arithmetic/char/03.cc | 2 -- .../extractors_arithmetic/char/06.cc | 2 -- .../extractors_arithmetic/char/07.cc | 2 -- .../extractors_arithmetic/char/08.cc | 2 -- .../extractors_arithmetic/char/09.cc | 26 ++++++++--------- .../extractors_arithmetic/char/10.cc | 2 -- .../extractors_arithmetic/char/11.cc | 2 -- .../extractors_arithmetic/char/13.cc | 2 -- .../inserters_arithmetic/char/1.cc | 3 -- .../inserters_arithmetic/char/2.cc | 1 - .../inserters_arithmetic/wchar_t/1.cc | 3 -- 14 files changed, 41 insertions(+), 38 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9ff75067f6ef..a50dd9e64ef7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,32 @@ +2003-01-04 Paolo Carlini <pcarlini@suse.de> + + * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: + Remove redundant #includes. + * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: + Likewise. + * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: + Likewise. + * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: + Likewise. + * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: + Likewise. + * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: + Likewise. + * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: + Likewise. + * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: + Likewise. + * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc: + Likewise. + * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc: + Likewise. + * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: + Likewise. + * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: + Likewise. + * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: + Likewise. + 2004-01-04 Mark Mitchell <mark@codesourcery.com> PR c++/12226 diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc index ef4e6ada684b..99da67917990 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc @@ -22,7 +22,6 @@ #include <cstdio> // for printf #include <istream> -#include <ostream> #include <sstream> #include <locale> #include <testsuite_hooks.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc index 7a5e44502618..45ec098b3b92 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc @@ -20,9 +20,7 @@ // 27.6.1.2.2 arithmetic extractors -#include <cstdio> // for printf #include <istream> -#include <ostream> #include <sstream> #include <locale> #include <testsuite_hooks.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc index 9b467d374878..9135c226999a 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc @@ -20,9 +20,7 @@ // 27.6.1.2.2 arithmetic extractors -#include <cstdio> // for printf #include <istream> -#include <ostream> #include <sstream> #include <locale> #include <testsuite_hooks.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc index 5c615aaebb68..efc2229d9ba3 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc @@ -20,9 +20,7 @@ // 27.6.1.2.2 arithmetic extractors -#include <cstdio> // for printf #include <istream> -#include <ostream> #include <sstream> #include <locale> #include <testsuite_hooks.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc index 5efff5744a67..832d96a5f8bb 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc @@ -20,9 +20,7 @@ // 27.6.1.2.2 arithmetic extractors -#include <cstdio> // for printf #include <istream> -#include <ostream> #include <sstream> #include <locale> #include <testsuite_hooks.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc index 276fd913dfc6..098882c2395c 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc @@ -20,9 +20,7 @@ // 27.6.1.2.2 arithmetic extractors -#include <cstdio> // for printf #include <istream> -#include <ostream> #include <sstream> #include <locale> #include <testsuite_hooks.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc index 23e68a7629b8..fefb43fffd7d 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc @@ -20,9 +20,7 @@ // 27.6.1.2.2 arithmetic extractors -#include <cstdio> // for printf #include <istream> -#include <ostream> #include <sstream> #include <locale> #include <testsuite_hooks.h> @@ -45,19 +43,19 @@ std::stringstream ss_01(str_01); bool test09() { - bool test __attribute__((unused)) = true; + bool test __attribute__((unused)) = true; - std::string st("2.456e3-+0.567e-2"); - std::stringbuf sb(st); - std::istream is(&sb); - double f1 = 0, f2 = 0; - char c; - (is>>std::ws) >> f1; - (is>>std::ws) >> c; - (is>>std::ws) >> f2; - test = f1 == 2456; - VERIFY( f2 == 0.00567 ); - VERIFY( c == '-' ); + std::string st("2.456e3-+0.567e-2"); + std::stringbuf sb(st); + std::istream is(&sb); + double f1 = 0, f2 = 0; + char c; + (is>>std::ws) >> f1; + (is>>std::ws) >> c; + (is>>std::ws) >> f2; + test = f1 == 2456; + VERIFY( f2 == 0.00567 ); + VERIFY( c == '-' ); return test; } diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc index 08c39ee8167c..2c88f3e9ea94 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc @@ -20,9 +20,7 @@ // 27.6.1.2.2 arithmetic extractors -#include <cstdio> // for printf #include <istream> -#include <ostream> #include <sstream> #include <locale> #include <testsuite_hooks.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc index fc7d25e6ae27..429b01b3c96d 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc @@ -20,9 +20,7 @@ // 27.6.1.2.2 arithmetic extractors -#include <cstdio> // for printf #include <istream> -#include <ostream> #include <sstream> #include <locale> #include <testsuite_hooks.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc index 22896df79f37..70feaaebf8d5 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc @@ -20,9 +20,7 @@ // 27.6.1.2.2 arithmetic extractors -#include <cstdio> // for printf #include <istream> -#include <ostream> #include <sstream> #include <locale> #include <testsuite_hooks.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc index 8b8da8a1e80a..cfb2f7be7cf1 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc @@ -19,9 +19,6 @@ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. -#include <cstdio> // for sprintf -#include <cmath> // for abs -#include <cfloat> // for DBL_EPSILON #include <iostream> #include <iomanip> #include <sstream> diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc index c1d41ca35acc..0aa130af27e0 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc @@ -19,7 +19,6 @@ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. -#include <cstdio> // for sprintf #include <iostream> #include <iomanip> #include <locale> diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc index 0f8848b40089..c0acd07ba3ee 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc @@ -19,9 +19,6 @@ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. -#include <cstdio> // for sprintf -#include <cmath> // for abs -#include <cfloat> // for DBL_EPSILON #include <iostream> #include <iomanip> #include <sstream> -- GitLab