28 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20, c++2310 11// <fstream>12 13// class basic_ofstream;14 15// native_handle_type native_handle() const noexcept;16 17#include "test_macros.h"18#include "../native_handle_test_helpers.h"19 20int main(int, char**) {21 test_native_handle<char, std::basic_ofstream<char>>();22#ifndef TEST_HAS_NO_WIDE_CHARACTERS23 test_native_handle<wchar_t, std::basic_ofstream<wchar_t>>();24#endif25 26 return 0;27}28