OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libstdc++-v3/] [testsuite/] [27_io/] [ios_base/] [types/] [fmtflags/] [case_label.cc] - Blame information for rev 19

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 jlechner
// { dg-do compile }
2
// { dg-options "-Wall" { target *-*-* } }
3
// -*- C++ -*-
4
 
5
// Copyright (C) 2004 Free Software Foundation, Inc.
6
 
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 2, or (at
10
// your option) any later version.
11
 
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.
16
 
17
// You should have received a copy of the GNU General Public License
18
// along with this library; see the file COPYING.  If not, write to
19
// the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
20
// MA 02110-1301, USA.
21
 
22
// As a special exception, you may use this file as part of a free
23
// software library without restriction.  Specifically, if other files
24
// instantiate templates or use macros or inline functions from this
25
// file, or you compile this file and link it with other files to
26
// produce an executable, this file does not by itself cause the
27
// resulting executable to be covered by the GNU General Public
28
// License.  This exception does not however invalidate any other
29
// reasons why the executable file might be covered by the GNU General
30
// Public License.
31
 
32
// Benjamin Kosnik  <bkoz@redhat.com>
33
 
34
#include <ios>
35
 
36
// PR libstdc++/17922
37
// -Wall
38
typedef std::ios_base::fmtflags bitmask_type;
39
 
40
void
41
case_labels(bitmask_type b)
42
{
43
  switch (b)
44
    {
45
    case std::ios_base::boolalpha:
46
      break;
47
    case std::ios_base::dec:
48
      break;
49
    case std::ios_base::fixed:
50
      break;
51
    case std::ios_base::hex:
52
      break;
53
    case std::ios_base::internal:
54
      break;
55
    case std::ios_base::left:
56
      break;
57
    case std::ios_base::oct:
58
      break;
59
    case std::ios_base::right:
60
      break;
61
    case std::ios_base::scientific:
62
      break;
63
    case std::ios_base::showbase:
64
      break;
65
    case std::ios_base::showpoint:
66
      break;
67
    case std::ios_base::showpos:
68
      break;
69
    case std::ios_base::skipws:
70
      break;
71
    case std::ios_base::unitbuf:
72
      break;
73
    case std::ios_base::uppercase:
74
      break;
75
    case std::ios_base::adjustfield:
76
      break;
77
    case std::ios_base::basefield:
78
      break;
79
    case std::ios_base::floatfield:
80
      break;
81
    case std::_S_ios_fmtflags_end:
82
      break;
83
    }
84
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.