xref: /aosp_15_r20/external/libcxx/test/std/depr/depr.ios.members/streamoff.pass.cpp (revision 58b9f456b02922dfdb1fad8a988d5fd8765ecb80)
1*58b9f456SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
2*58b9f456SAndroid Build Coastguard Worker //
3*58b9f456SAndroid Build Coastguard Worker //                     The LLVM Compiler Infrastructure
4*58b9f456SAndroid Build Coastguard Worker //
5*58b9f456SAndroid Build Coastguard Worker // This file is dual licensed under the MIT and the University of Illinois Open
6*58b9f456SAndroid Build Coastguard Worker // Source Licenses. See LICENSE.TXT for details.
7*58b9f456SAndroid Build Coastguard Worker //
8*58b9f456SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
9*58b9f456SAndroid Build Coastguard Worker 
10*58b9f456SAndroid Build Coastguard Worker // <ios>
11*58b9f456SAndroid Build Coastguard Worker //
12*58b9f456SAndroid Build Coastguard Worker // class ios_base
13*58b9f456SAndroid Build Coastguard Worker // {
14*58b9f456SAndroid Build Coastguard Worker // public:
15*58b9f456SAndroid Build Coastguard Worker //     typedef OFF_T streamoff;
16*58b9f456SAndroid Build Coastguard Worker // };
17*58b9f456SAndroid Build Coastguard Worker 
18*58b9f456SAndroid Build Coastguard Worker //  These members were removed for C++17
19*58b9f456SAndroid Build Coastguard Worker 
20*58b9f456SAndroid Build Coastguard Worker #include "test_macros.h"
21*58b9f456SAndroid Build Coastguard Worker #include <ios>
22*58b9f456SAndroid Build Coastguard Worker #include <type_traits>
23*58b9f456SAndroid Build Coastguard Worker 
main()24*58b9f456SAndroid Build Coastguard Worker int main()
25*58b9f456SAndroid Build Coastguard Worker {
26*58b9f456SAndroid Build Coastguard Worker #if TEST_STD_VER <= 14
27*58b9f456SAndroid Build Coastguard Worker     static_assert((std::is_integral<std::ios_base::streamoff>::value), "");
28*58b9f456SAndroid Build Coastguard Worker     static_assert((std::is_signed<std::ios_base::streamoff>::value), "");
29*58b9f456SAndroid Build Coastguard Worker #endif
30*58b9f456SAndroid Build Coastguard Worker }
31