filebuf_members.cc (test_05): Add test.
authorPaolo Carlini <pcarlini@unitus.it>
Mon, 28 Jan 2002 20:07:57 +0000 (21:07 +0100)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 28 Jan 2002 20:07:57 +0000 (20:07 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/filebuf_members.cc

index 044f549587bcbf28a5ce1048e99a6ee28d0d62fd..e171c6f79c9eb8366acd2a0a3045690494e88bbd 100644 (file)
@@ -1,3 +1,8 @@
+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):
index 66c5a15f25220cc5c5238d476413798c52baea2a..eed4ff6fc770e0dbc039b49ec7d0745e4d348aca 100644 (file)
@@ -174,6 +174,22 @@ test_04()
   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()
 {
@@ -181,6 +197,7 @@ main()
   test_02();
   test_03();
   test_04();
+  test_05();
   return 0;
 }