| 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 T3 seek_dir; |
| 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::seek_dir b = std::strstream::cur; |
| 30 | assert(b == std::ios::cur); |
| 31 | |
| 32 | return 0; |
| 33 | } |
| 34 | |