diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-28 20:07:57 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-28 20:07:57 +0000 |
commit | 8b9e520b8624cc3bbc28da8ff42d00b87a517e32 (patch) | |
tree | 46c8e918e369454ae76b8fb296f47bf1b6ec7cc7 | |
parent | 82086392a5a1aa6677f7f79543907642332aae69 (diff) | |
download | gcc-8b9e520b8624cc3bbc28da8ff42d00b87a517e32.tar.gz |
2002-01-28 Paolo Carlini <pcarlini@unitus.it>
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/27_io/filebuf_members.cc | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 044f549587b..e171c6f79c9 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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 diff --git a/libstdc++-v3/testsuite/27_io/filebuf_members.cc b/libstdc++-v3/testsuite/27_io/filebuf_members.cc index 66c5a15f252..eed4ff6fc77 100644 --- a/libstdc++-v3/testsuite/27_io/filebuf_members.cc +++ b/libstdc++-v3/testsuite/27_io/filebuf_members.cc @@ -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; } |