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 // static const openmode app;
15 // static const openmode ate;
16 // static const openmode binary;
17 // static const openmode in;
18 // static const openmode out;
19 // static const openmode trunc;
20 
21 #include <ios>
22 #include <cassert>
23 
24 int main()
25 {
26     assert(std::ios_base::app);
27     assert(std::ios_base::ate);
28     assert(std::ios_base::binary);
29     assert(std::ios_base::in);
30     assert(std::ios_base::out);
31     assert(std::ios_base::trunc);
32 
33     assert
34     (
35         ( std::ios_base::app
36         & std::ios_base::ate
37         & std::ios_base::binary
38         & std::ios_base::in
39         & std::ios_base::out
40         & std::ios_base::trunc) == 0
41     );
42 }
43