diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-03 10:29:25 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-03 10:29:25 +0000 |
| commit | 3befb54844a444f72f462224827aa83598280b66 (patch) | |
| tree | 3f725a956f0023a11f2e6a7fdb9c81734eb97b24 /libstdc++-v3/testsuite/27_io/basic_stringstream | |
| parent | 335cf3d5aeda40e842fa8eab93c09c400896fb1b (diff) | |
| download | ppe42-gcc-3befb54844a444f72f462224827aa83598280b66.tar.gz ppe42-gcc-3befb54844a444f72f462224827aa83598280b66.zip | |
2006-01-03 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/basic_stringstream/str/char/1.cc: Initialize vars.
* testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise, tidy.
* testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109275 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/basic_stringstream')
| -rw-r--r-- | libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc | 5 | ||||
| -rw-r--r-- | libstdc++-v3/testsuite/27_io/basic_stringstream/str/wchar_t/1.cc | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc index 37112cc8418..aaee938e67a 100644 --- a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc @@ -1,6 +1,7 @@ // 2001-05-24 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 +// 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 @@ -31,7 +32,7 @@ void test01() const std::string str01 = "123"; std::string str02; const int i01 = 123; - int a,b; + int a = 0, b = 0; std::ios_base::iostate state1, state2, stateeof; stateeof = std::ios_base::eofbit; diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/wchar_t/1.cc index f5be647e71d..d56345b5141 100644 --- a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/wchar_t/1.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2004 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006 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 @@ -29,7 +29,7 @@ void test01() const std::wstring str01 = L"123"; std::wstring str02; const int i01 = 123; - int a,b; + int a = 0, b = 0; std::ios_base::iostate state1, state2, stateeof; stateeof = std::ios_base::eofbit; |

