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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [other/] [switch2.C] - Blame information for rev 316

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// Copyright (C) 2005 Free Software Foundation, Inc.
2
// Contributed by Nathan Sidwell 13 Oct 2005 
3
 
4
// PR 22551:ICE
5
// Origin:  Johnny Casey 
6
 
7
const int B = ~(~0u >> 1);
8
 
9
#define b(x) (B + x)
10
 
11
 
12
int Foo (int error)
13
{
14
  switch (error)
15
  {
16
  case b (1): return 0;
17
  case b (2): return 0;
18
  case b (3): return 0;
19
  case b (4): return 0;
20
  case b (5): return 0;
21
  }
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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