aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2004-08-11 13:47:24 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2004-08-11 13:47:24 +0000
commit665cdd2c8589ea86654576ac15483e46c17081dd (patch)
tree6ca2e584e21c3cac9659d13da8d8fb17caa6b27a /libstdc++-v3
parent48dd95f2a4c68e47d7afe372ed02f76446a0f9d9 (diff)
downloadgcc-665cdd2c8589ea86654576ac15483e46c17081dd.zip
gcc-665cdd2c8589ea86654576ac15483e46c17081dd.tar.gz
gcc-665cdd2c8589ea86654576ac15483e46c17081dd.tar.bz2
1.cc: Declare test variable.
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. From-SVN: r85802
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog26
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/1.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc2
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc8
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc6
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc6
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc6
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc9
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc7
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc6
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc6
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc5
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc3
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1.cc6
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1.cc5
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc3
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc5
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc3
23 files changed, 41 insertions, 95 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 005df42..0df5feb 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,4 +1,30 @@
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.
+
+2004-08-11 Paolo Carlini <pcarlini@suse.de>
Petur Runolfsson <peturr02@ru.is>
PR libstdc++/16959
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/1.cc
index 153d7df..4ca9a24 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/1.cc
@@ -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 @@ std::stringbuf strb_01(str_01);
// 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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc
index 855580d..b12e92d 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc
@@ -28,6 +28,8 @@ std::wstringbuf strb_01(str_01);
// 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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc
index e8e8dc9..99942f7 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc
@@ -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 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc
index 96fcbcd..ed6f248 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc
@@ -33,13 +33,7 @@ std::wstringbuf strb_03(str_03, std::ios_base::out);
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc
index df5173a..b73bb5d 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc
@@ -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 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc
index 188a87e..4db8ac4 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc
@@ -33,13 +33,9 @@ std::wstringbuf strb_03(str_03, std::ios_base::out);
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc
index cfed7cb..662ba12 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc
@@ -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 @@ 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;
// PUT
strb_03.str(str_01); //reset
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc
index ba01e1d..4e6d3ea0 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc
@@ -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 @@ 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;
// PUT
strb_03.str(str_01); //reset
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc
index 274cd61..9c92584 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc
@@ -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 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc
index 5912b05..38182de 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc
@@ -33,13 +33,9 @@ std::wstringbuf strb_03(str_03, std::ios_base::out);
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc
index c68ad14..d95f94a 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc
@@ -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 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc
index e038068..8208d6f 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc
@@ -33,14 +33,10 @@ std::wstringbuf strb_03(str_03, std::ios_base::out);
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc
index c943421..310dee1 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc
@@ -33,13 +33,9 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc
index fa82e65..eb2c40e 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc
@@ -33,13 +33,9 @@ std::wstringbuf strb_03(str_03, std::ios_base::out);
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc
index 853339e..79ce099 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc
@@ -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 @@ void test04()
{
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc
index a6e8ae6..eed6591 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc
@@ -34,12 +34,9 @@ void test04()
{
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1.cc
index 5fc08f2..241c9b9 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1.cc
@@ -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 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc
index 2c74971..6c9f2f6 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc
@@ -33,12 +33,8 @@ std::wstringbuf strb_03(str_03, std::ios_base::out);
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1.cc
index 801ae7f..2394893 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1.cc
@@ -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 @@ void test04()
{
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc
index 450c2e7..e8ec016 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc
@@ -34,12 +34,9 @@ void test04()
{
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc
index a90885a..1d9effc 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc
@@ -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 @@ void test04()
{
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 --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc
index a25ded4..f718c2c 100644
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc
@@ -34,12 +34,9 @@ void test04()
{
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();