1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // template <class charT, class traits = char_traits<charT> >
12 // class basic_fstream
14 // basic_fstream& operator=(basic_fstream&& rhs);
18 #include "test_macros.h"
19 #include "platform_support.h"
23 std::string temp
= get_temp_file_name();
25 std::fstream
fso(temp
.c_str(), std::ios_base::in
| std::ios_base::out
26 | std::ios_base::trunc
);
35 std::remove(temp
.c_str());
37 #ifndef TEST_HAS_NO_WIDE_CHARACTERS
39 std::wfstream
fso(temp
.c_str(), std::ios_base::in
| std::ios_base::out
40 | std::ios_base::trunc
);
49 std::remove(temp
.c_str());