2002-01-28 Paolo Carlini <pcarlini@unitus.it>
Charles Leggett <CGLeggett@lbl.gov>
* testsuite/27_io/filebuf_members.cc (test_05): Add test.
Co-Authored-By: Charles Leggett <CGLeggett@lbl.gov>
From-SVN: r49297
+2002-01-28 Paolo Carlini <pcarlini@unitus.it>
+ Charles Leggett <CGLeggett@lbl.gov>
+
+ * testsuite/27_io/filebuf_members.cc (test_05): Add test.
+
2002-01-28 Paolo Carlini <pcarlini@unitus.it>
* testsuite/27_io/ostream_inserter_arith.cc (test03):
exit(0);
}
+// Charles Leggett <CGLeggett@lbl.gov>
+void test_05()
+{
+ bool test = true;
+
+ std::fstream scratch_file;
+
+ scratch_file.open("SCRATCH", std::ios::out);
+ scratch_file.close();
+
+ scratch_file.open("SCRATCH", std::ios::in);
+ scratch_file.close();
+
+ VERIFY(scratch_file);
+}
+
int
main()
{
test_02();
test_03();
test_04();
+ test_05();
return 0;
}