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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libstdc++-v3/] [testsuite/] [27_io/] [ios_base/] [types/] [iostate/] [case_label.cc] - Blame information for rev 742

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 742 jeremybenn
// { dg-do compile }
2
// { dg-options "-Wall" { target *-*-* } }
3
// -*- C++ -*-
4
 
5
// Copyright (C) 2004, 2009 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 3, 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 COPYING3.  If not see
19
// <http://www.gnu.org/licenses/>.
20
 
21
 
22
// Benjamin Kosnik  <bkoz@redhat.com>
23
 
24
#include <ios>
25
 
26
// PR libstdc++/17922
27
// -Wall
28
typedef std::ios_base::iostate bitmask_type;
29
 
30
void
31
case_labels(bitmask_type b)
32
{
33
  switch (b)
34
    {
35
    case std::ios_base::goodbit:
36
      break;
37
    case std::ios_base::badbit:
38
      break;
39
    case std::ios_base::eofbit:
40
      break;
41
    case std::ios_base::failbit:
42
      break;
43
    case std::_S_ios_iostate_end:
44
      break;
45
    }
46
}

powered by: WebSVN 2.1.0

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