
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@103490 91177308-0d34-0410-b5e6-96231b3b80d8
37 lines
834 B
C++
37 lines
834 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊThe LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// <ios>
|
|
|
|
// class ios_base
|
|
|
|
// static const iostate badbit;
|
|
// static const iostate eofbit;
|
|
// static const iostate failbit;
|
|
// static const iostate goodbit = 0;
|
|
|
|
#include <ios>
|
|
#include <cassert>
|
|
|
|
int main()
|
|
{
|
|
assert(std::ios_base::badbit);
|
|
assert(std::ios_base::eofbit);
|
|
assert(std::ios_base::failbit);
|
|
|
|
assert
|
|
(
|
|
( std::ios_base::badbit
|
|
& std::ios_base::eofbit
|
|
& std::ios_base::failbit) == 0
|
|
);
|
|
|
|
assert(std::ios_base::goodbit == 0);
|
|
}
|