[CodeGen] Introduce a VirtRegOrUnit class to hold virtual reg or physical reg unit...
[llvm-project.git] / libcxx / test / std / input.output / file.streams / fstreams / ofstream.cons / default.pass.cpp
blob4cda1db438342ec1b77b5263c7107f63fdf925e4
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 // <fstream>
11 // template <class charT, class traits = char_traits<charT> >
12 // class basic_ofstream
14 // basic_ofstream();
16 // XFAIL: FROZEN-CXX03-HEADERS-FIXME
18 #include <fstream>
20 #include "test_macros.h"
21 #include "operator_hijacker.h"
23 int main(int, char**)
26 std::ofstream fs;
29 std::basic_ofstream<char, operator_hijacker_char_traits<char> > fs;
31 #ifndef TEST_HAS_NO_WIDE_CHARACTERS
33 std::wofstream fs;
36 std::basic_fstream<wchar_t, operator_hijacker_char_traits<wchar_t> > fs;
38 #endif
40 return 0;