diff options
Diffstat (limited to 'libcxx/test/input.output/file.streams/fstreams/fstream.members/close.pass.cpp')
-rw-r--r-- | libcxx/test/input.output/file.streams/fstreams/fstream.members/close.pass.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/libcxx/test/input.output/file.streams/fstreams/fstream.members/close.pass.cpp b/libcxx/test/input.output/file.streams/fstreams/fstream.members/close.pass.cpp deleted file mode 100644 index 0e4bc7177b8..00000000000 --- a/libcxx/test/input.output/file.streams/fstreams/fstream.members/close.pass.cpp +++ /dev/null @@ -1,42 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// <fstream> - -// template <class charT, class traits = char_traits<charT> > -// class basic_fstream - -// void close(); - -#include <fstream> -#include <cassert> -#include "platform_support.h" - -int main() -{ - std::string temp = get_temp_file_name(); - { - std::fstream fs; - assert(!fs.is_open()); - fs.open(temp.c_str(), std::ios_base::out); - assert(fs.is_open()); - fs.close(); - assert(!fs.is_open()); - } - std::remove(temp.c_str()); - { - std::wfstream fs; - assert(!fs.is_open()); - fs.open(temp.c_str(), std::ios_base::out); - assert(fs.is_open()); - fs.close(); - assert(!fs.is_open()); - } - std::remove(temp.c_str()); -} |