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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20011223-1.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* Origin: Joseph Myers <jsm28@cam.ac.uk>.  */
2
/* Case labels in a switch statement are converted to the promoted
3
   type of the controlling expression, not an unpromoted version.
4
   Reported as PR c/2454 by
5
   Andreas Krakowczyk <Andreas.Krakowczyk@fujitsu-siemens.com>.  */
6
 
7
extern void exit (int);
8
extern void abort (void);
9
 
10
static int i;
11
 
12
int
13
main (void)
14
{
15
  i = -1;
16
  switch ((signed char) i) {
17
  case 255:
18
    abort ();
19
  default:
20
    exit (0);
21
  }
22
}

powered by: WebSVN 2.1.0

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