Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / input.output / file.streams / fstreams / ofstream.cons / default.pass.cpp
blob347013312a343b8c075d2489353abc0c04b9e87a
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 #include <fstream>
17 #include <type_traits>
19 #include "test_macros.h"
21 int main(int, char**)
24 std::ofstream fs;
26 #ifndef TEST_HAS_NO_WIDE_CHARACTERS
28 std::wofstream fs;
30 #endif
32 return 0;