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 | // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS -D_LIBCPP_ENABLE_CXX26_REMOVED_STRSTREAM |
10 | |
11 | // <strstream> |
12 | |
13 | // class strstream |
14 | // : public basic_iostream<char> |
15 | // { |
16 | // public: |
17 | // // Types |
18 | // typedef char char_type; |
19 | // typedef char_traits<char>::int_type int_type; |
20 | // typedef char_traits<char>::pos_type pos_type; |
21 | // typedef char_traits<char>::off_type off_type; |
22 | |
23 | #include <strstream> |
24 | #include <type_traits> |
25 | |
26 | #include "test_macros.h" |
27 | |
28 | int main(int, char**) |
29 | { |
30 | static_assert((std::is_base_of<std::iostream, std::strstream>::value), "" ); |
31 | static_assert((std::is_same<std::strstream::char_type, char>::value), "" ); |
32 | static_assert((std::is_same<std::strstream::int_type, std::char_traits<char>::int_type>::value), "" ); |
33 | static_assert((std::is_same<std::strstream::pos_type, std::char_traits<char>::pos_type>::value), "" ); |
34 | static_assert((std::is_same<std::strstream::off_type, std::char_traits<char>::off_type>::value), "" ); |
35 | |
36 | return 0; |
37 | } |
38 | |