Rename CODE_OWNERS -> Maintainers (#114544)
[llvm-project.git] / libcxx / test / std / depr / depr.ios.members / seek_dir.pass.cpp
blobb68e53694ddca4b876ddad3e36f0cadfeaaa2cd7
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 //===----------------------------------------------------------------------===//
9 // REQUIRES: c++03 || c++11 || c++14
11 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS
13 // <ios>
15 // class ios_base
16 // {
17 // public:
18 // typedef T3 seek_dir;
19 // };
21 // These members were removed for C++17
23 #include "test_macros.h"
24 #include <strstream>
25 #include <cassert>
27 int main(int, char**)
29 std::strstream::seek_dir b = std::strstream::cur;
30 assert(b == std::ios::cur);
32 return 0;