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 | // REQUIRES: c++03 || c++11 || c++14 |
10 | |
11 | // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS |
12 | |
13 | // <ios> |
14 | // |
15 | // class ios_base |
16 | // { |
17 | // public: |
18 | // typedef T2 open_mode; |
19 | // }; |
20 | |
21 | // These members were removed for C++17 |
22 | |
23 | #include "test_macros.h" |
24 | #include <strstream> |
25 | #include <cassert> |
26 | |
27 | int main(int, char**) |
28 | { |
29 | std::strstream::open_mode b = std::strstream::app; |
30 | assert(b == std::ios::app); |
31 | |
32 | return 0; |
33 | } |
34 | |