1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <ios>
11 //
12 // class ios_base
13 // {
14 // public:
15 //     typedef T1 io_state;
16 // };
17 
18 #include <strstream>
19 #include <cassert>
20 
21 int main()
22 {
23     std::strstream::io_state b = std::strstream::eofbit;
24     assert(b == std::ios::eofbit);
25 }
26