llvm-project/libcxx/test/depr/depr.ios.members/streamoff.pass.cpp

26 lines
646 B
C++
Raw Normal View History

2010-05-12 03:42:16 +08:00
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
2010-05-12 03:42:16 +08:00
//
2010-11-17 06:09:02 +08:00
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
2010-05-12 03:42:16 +08:00
//
//===----------------------------------------------------------------------===//
// <ios>
//
2010-05-12 03:42:16 +08:00
// class ios_base
// {
// public:
// typedef OFF_T streamoff;
// };
#include <ios>
#include <type_traits>
int main()
{
static_assert((std::is_integral<std::ios_base::streamoff>::value), "");
static_assert((std::is_signed<std::ios_base::streamoff>::value), "");
}