aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/27_io/instantiations.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/instantiations.cc')
-rw-r--r--libstdc++-v3/testsuite/27_io/instantiations.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/27_io/instantiations.cc b/libstdc++-v3/testsuite/27_io/instantiations.cc
index 6f87982c980..b7ee2b4b6f5 100644
--- a/libstdc++-v3/testsuite/27_io/instantiations.cc
+++ b/libstdc++-v3/testsuite/27_io/instantiations.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002 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
@@ -35,6 +35,7 @@ void
test01()
{
using namespace std;
+ bool test = true;
string x (" this is text");
istringstream sin (x);
ostringstream sout;
@@ -47,7 +48,7 @@ test01()
>> setprecision(5)
>> setw(20)
>> ws;
- VERIFY(sin);
+ VERIFY(sin.good());
sout << resetiosflags(ios_base::dec)
<< setiosflags(ios_base::dec)
@@ -56,7 +57,7 @@ test01()
<< setprecision(5)
<< setw(20)
<< ends << flush << endl;
- VERIFY(sout);
+ VERIFY(sout.good());
}