1*0a6a1f1dSLionel Sambuc //===----------------------------------------------------------------------===//
2*0a6a1f1dSLionel Sambuc //
3*0a6a1f1dSLionel Sambuc //                     The LLVM Compiler Infrastructure
4*0a6a1f1dSLionel Sambuc //
5*0a6a1f1dSLionel Sambuc // This file is dual licensed under the MIT and the University of Illinois Open
6*0a6a1f1dSLionel Sambuc // Source Licenses. See LICENSE.TXT for details.
7*0a6a1f1dSLionel Sambuc //
8*0a6a1f1dSLionel Sambuc //===----------------------------------------------------------------------===//
9*0a6a1f1dSLionel Sambuc 
10*0a6a1f1dSLionel Sambuc // <ios>
11*0a6a1f1dSLionel Sambuc 
12*0a6a1f1dSLionel Sambuc // class ios_base
13*0a6a1f1dSLionel Sambuc 
14*0a6a1f1dSLionel Sambuc // static const fmtflags boolalpha;
15*0a6a1f1dSLionel Sambuc // static const fmtflags dec;
16*0a6a1f1dSLionel Sambuc // static const fmtflags fixed;
17*0a6a1f1dSLionel Sambuc // static const fmtflags hex;
18*0a6a1f1dSLionel Sambuc // static const fmtflags internal;
19*0a6a1f1dSLionel Sambuc // static const fmtflags left;
20*0a6a1f1dSLionel Sambuc // static const fmtflags oct;
21*0a6a1f1dSLionel Sambuc // static const fmtflags right;
22*0a6a1f1dSLionel Sambuc // static const fmtflags scientific;
23*0a6a1f1dSLionel Sambuc // static const fmtflags showbase;
24*0a6a1f1dSLionel Sambuc // static const fmtflags showpoint;
25*0a6a1f1dSLionel Sambuc // static const fmtflags showpos;
26*0a6a1f1dSLionel Sambuc // static const fmtflags skipws;
27*0a6a1f1dSLionel Sambuc // static const fmtflags unitbuf;
28*0a6a1f1dSLionel Sambuc // static const fmtflags uppercase;
29*0a6a1f1dSLionel Sambuc // static const fmtflags adjustfield = left | right | internal;
30*0a6a1f1dSLionel Sambuc // static const fmtflags basefield   = dec | oct | hex;
31*0a6a1f1dSLionel Sambuc // static const fmtflags floatfield  = scientific | fixed;
32*0a6a1f1dSLionel Sambuc 
33*0a6a1f1dSLionel Sambuc #include <ios>
34*0a6a1f1dSLionel Sambuc #include <cassert>
35*0a6a1f1dSLionel Sambuc 
main()36*0a6a1f1dSLionel Sambuc int main()
37*0a6a1f1dSLionel Sambuc {
38*0a6a1f1dSLionel Sambuc     assert(std::ios_base::boolalpha);
39*0a6a1f1dSLionel Sambuc     assert(std::ios_base::dec);
40*0a6a1f1dSLionel Sambuc     assert(std::ios_base::fixed);
41*0a6a1f1dSLionel Sambuc     assert(std::ios_base::hex);
42*0a6a1f1dSLionel Sambuc     assert(std::ios_base::internal);
43*0a6a1f1dSLionel Sambuc     assert(std::ios_base::left);
44*0a6a1f1dSLionel Sambuc     assert(std::ios_base::oct);
45*0a6a1f1dSLionel Sambuc     assert(std::ios_base::right);
46*0a6a1f1dSLionel Sambuc     assert(std::ios_base::scientific);
47*0a6a1f1dSLionel Sambuc     assert(std::ios_base::showbase);
48*0a6a1f1dSLionel Sambuc     assert(std::ios_base::showpoint);
49*0a6a1f1dSLionel Sambuc     assert(std::ios_base::showpos);
50*0a6a1f1dSLionel Sambuc     assert(std::ios_base::skipws);
51*0a6a1f1dSLionel Sambuc     assert(std::ios_base::unitbuf);
52*0a6a1f1dSLionel Sambuc     assert(std::ios_base::uppercase);
53*0a6a1f1dSLionel Sambuc 
54*0a6a1f1dSLionel Sambuc     assert
55*0a6a1f1dSLionel Sambuc     (
56*0a6a1f1dSLionel Sambuc         ( std::ios_base::boolalpha
57*0a6a1f1dSLionel Sambuc         & std::ios_base::dec
58*0a6a1f1dSLionel Sambuc         & std::ios_base::fixed
59*0a6a1f1dSLionel Sambuc         & std::ios_base::hex
60*0a6a1f1dSLionel Sambuc         & std::ios_base::internal
61*0a6a1f1dSLionel Sambuc         & std::ios_base::left
62*0a6a1f1dSLionel Sambuc         & std::ios_base::oct
63*0a6a1f1dSLionel Sambuc         & std::ios_base::right
64*0a6a1f1dSLionel Sambuc         & std::ios_base::scientific
65*0a6a1f1dSLionel Sambuc         & std::ios_base::showbase
66*0a6a1f1dSLionel Sambuc         & std::ios_base::showpoint
67*0a6a1f1dSLionel Sambuc         & std::ios_base::showpos
68*0a6a1f1dSLionel Sambuc         & std::ios_base::skipws
69*0a6a1f1dSLionel Sambuc         & std::ios_base::unitbuf
70*0a6a1f1dSLionel Sambuc         & std::ios_base::uppercase) == 0
71*0a6a1f1dSLionel Sambuc     );
72*0a6a1f1dSLionel Sambuc 
73*0a6a1f1dSLionel Sambuc     assert(std::ios_base::adjustfield == (std::ios_base::left
74*0a6a1f1dSLionel Sambuc                                         | std::ios_base::right
75*0a6a1f1dSLionel Sambuc                                         | std::ios_base::internal));
76*0a6a1f1dSLionel Sambuc     assert(std::ios_base::basefield == (std::ios_base::dec
77*0a6a1f1dSLionel Sambuc                                       | std::ios_base::oct
78*0a6a1f1dSLionel Sambuc                                       | std::ios_base::hex));
79*0a6a1f1dSLionel Sambuc     assert(std::ios_base::floatfield == (std::ios_base::scientific
80*0a6a1f1dSLionel Sambuc                                        | std::ios_base::fixed));
81*0a6a1f1dSLionel Sambuc }
82