This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] Remove junk from some testcases


Hi,

tested x86-linux, committing to mainline.

Paolo.

///////////
2004-08-11  Paolo Carlini  <pcarlini@suse.de>
	
	* testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
	variable.
	* testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
	* testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
	* testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/imbue/char/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/imbue/char/1.cc	2003-04-10 09:15:36.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/1.cc	2004-08-11 13:02:50.000000000 +0200
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -28,6 +28,8 @@
 // test the streambuf/stringbuf locale settings
 void test02() 
 {
+  bool test __attribute__((unused)) = true;
+
   std::locale loc_c = std::locale::classic();
   loc_c = strb_01.getloc();
   strb_01.pubimbue(loc_c); //This should initialize _M_init to true
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc	2004-07-10 00:00:53.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc	2004-08-11 13:02:17.000000000 +0200
@@ -28,6 +28,8 @@
 // test the streambuf/stringbuf locale settings
 void test02() 
 {
+  bool test __attribute__((unused)) = true;
+
   std::locale loc_c = std::locale::classic();
   loc_c = strb_01.getloc();
   strb_01.pubimbue(loc_c); //This should initialize _M_init to true
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc	2003-09-23 22:03:21.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc	2004-08-11 13:44:12.000000000 +0200
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -33,13 +33,7 @@
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::string 		str_tmp;
-  std::stringbuf 		strb_tmp;
   std::streamoff  		strmof_1(-1), strmof_2;
-  typedef std::stringbuf::int_type int_type;
-  typedef std::stringbuf::traits_type traits_type;
-  typedef std::stringbuf::pos_type pos_type;
-  typedef std::stringbuf::off_type off_type;
 
   // GET
   // int in_avail()
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc	2004-07-10 00:00:54.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc	2004-08-11 13:44:40.000000000 +0200
@@ -33,13 +33,7 @@
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::wstring 		str_tmp;
-  std::wstringbuf 		strb_tmp;
   std::streamoff  		strmof_1(-1), strmof_2;
-  typedef std::wstringbuf::int_type int_type;
-  typedef std::wstringbuf::traits_type traits_type;
-  typedef std::wstringbuf::pos_type pos_type;
-  typedef std::wstringbuf::off_type off_type;
 
   // GET
   // int in_avail()
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc	2003-09-23 22:03:21.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc	2004-08-11 13:12:48.000000000 +0200
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -33,13 +33,9 @@
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::string 		str_tmp;
-  std::stringbuf 		strb_tmp;
   std::streamoff  		strmof_1(-1), strmof_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
-  typedef std::stringbuf::pos_type pos_type;
-  typedef std::stringbuf::off_type off_type;
 
   // GET
   strmof_1 = strb_01.in_avail();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc	2004-07-10 00:00:54.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc	2004-08-11 13:13:00.000000000 +0200
@@ -33,13 +33,9 @@
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::wstring 		str_tmp;
-  std::wstringbuf 		strb_tmp;
   std::streamoff  		strmof_1(-1), strmof_2;
   typedef std::wstringbuf::int_type int_type;
-  typedef std::wstringbuf::traits_type traits_type;
-  typedef std::wstringbuf::pos_type pos_type;
-  typedef std::wstringbuf::off_type off_type;
+  typedef std::stringbuf::traits_type traits_type;
 
   // GET
   strmof_1 = strb_01.in_avail();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc	2003-09-23 22:03:22.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc	2004-08-11 13:46:12.000000000 +0200
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -23,10 +23,8 @@
 #include <testsuite_hooks.h>
 
 std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
 std::string str_03;
 std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
 std::stringbuf strb_03(str_03, std::ios_base::out);
 
 // test overloaded virtual functions
@@ -34,11 +32,6 @@
 {
   bool test __attribute__((unused)) = true;
   std::string 		str_tmp;
-  std::stringbuf 		strb_tmp;
-  typedef std::stringbuf::int_type int_type;
-  typedef std::stringbuf::traits_type traits_type;
-  typedef std::stringbuf::pos_type pos_type;
-  typedef std::stringbuf::off_type off_type;
 
   // PUT
   strb_03.str(str_01); //reset
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc	2004-07-10 00:00:56.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc	2004-08-11 13:46:28.000000000 +0200
@@ -23,10 +23,8 @@
 #include <testsuite_hooks.h>
 
 std::wstring str_01(L"mykonos. . . or what?");
-std::wstring str_02(L"paris, or sainte-maxime?");
 std::wstring str_03;
 std::wstringbuf strb_01(str_01);
-std::wstringbuf strb_02(str_02, std::ios_base::in);
 std::wstringbuf strb_03(str_03, std::ios_base::out);
 
 // test overloaded virtual functions
@@ -34,11 +32,6 @@
 {
   bool test __attribute__((unused)) = true;
   std::wstring 		str_tmp;
-  std::wstringbuf 		strb_tmp;
-  typedef std::wstringbuf::int_type int_type;
-  typedef std::wstringbuf::traits_type traits_type;
-  typedef std::wstringbuf::pos_type pos_type;
-  typedef std::wstringbuf::off_type off_type;
 
   // PUT
   strb_03.str(str_01); //reset
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc	2003-09-23 22:03:22.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc	2004-08-11 13:11:59.000000000 +0200
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -33,13 +33,9 @@
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::string 		str_tmp;
-  std::stringbuf 		strb_tmp;
   std::streamoff  		strmof_1(-1), strmof_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
-  typedef std::stringbuf::pos_type pos_type;
-  typedef std::stringbuf::off_type off_type;
 
   // GET
   strmof_1 = strb_01.in_avail();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc	2004-07-10 00:00:56.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc	2004-08-11 13:11:48.000000000 +0200
@@ -33,13 +33,9 @@
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::wstring 		str_tmp;
-  std::wstringbuf 		strb_tmp;
   std::streamoff  		strmof_1(-1), strmof_2;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
-  typedef std::wstringbuf::pos_type pos_type;
-  typedef std::wstringbuf::off_type off_type;
 
   // GET
   strmof_1 = strb_01.in_avail();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc	2003-09-23 22:03:23.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc	2004-08-11 13:14:34.000000000 +0200
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -33,14 +33,10 @@
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::string 		str_tmp;
-  std::stringbuf 		strb_tmp;
   std::streamsize 		strmsz_1, strmsz_2;
   std::streamoff  		strmof_1(-1), strmof_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
-  typedef std::stringbuf::pos_type pos_type;
-  typedef std::stringbuf::off_type off_type;
 
   // GET
   strmof_1 = strb_01.in_avail();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc	2004-07-10 00:00:56.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc	2004-08-11 13:14:48.000000000 +0200
@@ -33,14 +33,10 @@
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::wstring 		str_tmp;
-  std::wstringbuf 		strb_tmp;
   std::streamsize 		strmsz_1, strmsz_2;
   std::streamoff  		strmof_1(-1), strmof_2;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
-  typedef std::wstringbuf::pos_type pos_type;
-  typedef std::wstringbuf::off_type off_type;
 
   // GET
   strmof_1 = strb_01.in_avail();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/snextc/char/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/snextc/char/1.cc	2003-09-23 22:03:23.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc	2004-08-11 13:16:48.000000000 +0200
@@ -33,13 +33,9 @@
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::string 		str_tmp;
-  std::stringbuf 		strb_tmp;
   std::streamoff  		strmof_1(-1), strmof_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
-  typedef std::stringbuf::pos_type pos_type;
-  typedef std::stringbuf::off_type off_type;
 
   // GET
   strmof_1 = strb_01.in_avail();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc	2004-07-10 00:00:57.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc	2004-08-11 13:17:25.000000000 +0200
@@ -33,13 +33,9 @@
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::wstring 		str_tmp;
-  std::wstringbuf 		strb_tmp;
   std::streamoff  		strmof_1(-1), strmof_2;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
-  typedef std::wstringbuf::pos_type pos_type;
-  typedef std::wstringbuf::off_type off_type;
 
   // GET
   strmof_1 = strb_01.in_avail();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc	2003-09-23 22:03:23.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc	2004-08-11 13:18:48.000000000 +0200
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -34,12 +34,9 @@
 {
   bool test __attribute__((unused)) = true;
   std::string 		str_tmp, str_tmp2;
-  std::stringbuf 		strb_tmp;
   std::streamsize 		strmsz_1, strmsz_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
-  typedef std::stringbuf::pos_type pos_type;
-  typedef std::stringbuf::off_type off_type;
 
   int_type c1 = strb_01.sbumpc();
   int_type c2 = strb_02.sbumpc();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc	2004-07-10 00:00:57.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc	2004-08-11 13:19:17.000000000 +0200
@@ -34,12 +34,9 @@
 {
   bool test __attribute__((unused)) = true;
   std::wstring 		str_tmp, str_tmp2;
-  std::wstringbuf 		strb_tmp;
   std::streamsize 		strmsz_1, strmsz_2;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
-  typedef std::wstringbuf::pos_type pos_type;
-  typedef std::wstringbuf::off_type off_type;
 
   int_type c1 = strb_01.sbumpc();
   int_type c2 = strb_02.sbumpc();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sputc/char/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sputc/char/1.cc	2003-09-23 22:03:24.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1.cc	2004-08-11 13:20:36.000000000 +0200
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -33,12 +33,8 @@
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::string 		str_tmp;
-  std::stringbuf 		strb_tmp;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
-  typedef std::stringbuf::pos_type pos_type;
-  typedef std::stringbuf::off_type off_type;
 
   int_type c1 = strb_01.sbumpc();
   int_type c2 = strb_02.sbumpc();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc	2004-07-10 00:00:57.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc	2004-08-11 13:20:51.000000000 +0200
@@ -33,12 +33,8 @@
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::wstring 		str_tmp;
-  std::wstringbuf 		strb_tmp;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
-  typedef std::wstringbuf::pos_type pos_type;
-  typedef std::wstringbuf::off_type off_type;
 
   int_type c1 = strb_01.sbumpc();
   int_type c2 = strb_02.sbumpc();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sputn/char/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sputn/char/1.cc	2003-09-23 22:03:24.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1.cc	2004-08-11 13:21:59.000000000 +0200
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -34,12 +34,9 @@
 {
   bool test __attribute__((unused)) = true;
   std::string 		str_tmp;
-  std::stringbuf 		strb_tmp;
   std::streamsize 		strmsz_1, strmsz_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
-  typedef std::stringbuf::pos_type pos_type;
-  typedef std::stringbuf::off_type off_type;
 
   // PUT
   strb_03.str(str_01); //reset
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc	2004-07-10 00:00:58.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc	2004-08-11 13:22:22.000000000 +0200
@@ -34,12 +34,9 @@
 {
   bool test __attribute__((unused)) = true;
   std::wstring 		str_tmp;
-  std::wstringbuf 		strb_tmp;
   std::streamsize 		strmsz_1, strmsz_2;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
-  typedef std::wstringbuf::pos_type pos_type;
-  typedef std::wstringbuf::off_type off_type;
 
   // PUT
   strb_03.str(str_01); //reset
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc	2003-09-23 22:03:24.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc	2004-08-11 13:23:23.000000000 +0200
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -34,12 +34,9 @@
 {
   bool test __attribute__((unused)) = true;
   std::string 		str_tmp;
-  std::stringbuf 		strb_tmp;
   std::streamsize 		strmsz_1, strmsz_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
-  typedef std::stringbuf::pos_type pos_type;
-  typedef std::stringbuf::off_type off_type;
 
   int_type c1 = strb_01.sbumpc();
   int_type c2 = strb_02.sbumpc();
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc	2004-07-10 00:00:58.000000000 +0200
+++ libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc	2004-08-11 13:23:45.000000000 +0200
@@ -34,12 +34,9 @@
 {
   bool test __attribute__((unused)) = true;
   std::wstring 		str_tmp;
-  std::wstringbuf 		strb_tmp;
   std::streamsize 		strmsz_1, strmsz_2;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
-  typedef std::wstringbuf::pos_type pos_type;
-  typedef std::wstringbuf::off_type off_type;
 
   int_type c1 = strb_01.sbumpc();
   int_type c2 = strb_02.sbumpc();

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]