Reverting merge from trunk
[official-gcc.git] / libstdc++-v3 / testsuite / 27_io / ios_base / types / fmtflags / case_label.cc
blob38af93308f973020bac18bd62b824f89dc781e04
1 // { dg-do compile }
2 // { dg-options "-Wall" { target *-*-* } }
3 // -*- C++ -*-
5 // Copyright (C) 2004-2013 Free Software Foundation, Inc.
7 // This library is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 3, or (at
10 // your option) any later version.
12 // This library is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this library; see the file COPYING3. If not see
19 // <http://www.gnu.org/licenses/>.
22 // Benjamin Kosnik <bkoz@redhat.com>
24 #include <ios>
26 // PR libstdc++/17922
27 // -Wall
28 typedef std::ios_base::fmtflags bitmask_type;
30 void
31 case_labels(bitmask_type b)
33 switch (b)
35 case std::ios_base::boolalpha:
36 break;
37 case std::ios_base::dec:
38 break;
39 case std::ios_base::fixed:
40 break;
41 case std::ios_base::hex:
42 break;
43 case std::ios_base::internal:
44 break;
45 case std::ios_base::left:
46 break;
47 case std::ios_base::oct:
48 break;
49 case std::ios_base::right:
50 break;
51 case std::ios_base::scientific:
52 break;
53 case std::ios_base::showbase:
54 break;
55 case std::ios_base::showpoint:
56 break;
57 case std::ios_base::showpos:
58 break;
59 case std::ios_base::skipws:
60 break;
61 case std::ios_base::unitbuf:
62 break;
63 case std::ios_base::uppercase:
64 break;
65 case std::ios_base::adjustfield:
66 break;
67 case std::ios_base::basefield:
68 break;
69 case std::ios_base::floatfield:
70 break;
71 case std::_S_ios_fmtflags_end:
72 break;