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