2002-01-28 Paolo Carlini <pcarlini@unitus.it>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Jan 2002 20:07:57 +0000 (20:07 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Jan 2002 20:07:57 +0000 (20:07 +0000)
    Charles Leggett <CGLeggett@lbl.gov>

* testsuite/27_io/filebuf_members.cc (test_05): Add test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49297 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 044f549..e171c6f 100644 (file)
@@ -1,4 +1,9 @@
 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):
        Fix to deal correctly with both 32 bit and 64 bit architectures
index 66c5a15..eed4ff6 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;
 }