URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 338 |
/* Origin: Joseph Myers <jsm28@cam.ac.uk>. */
|
/* Origin: Joseph Myers <jsm28@cam.ac.uk>. */
|
/* Case labels in a switch statement are converted to the promoted
|
/* Case labels in a switch statement are converted to the promoted
|
type of the controlling expression, not an unpromoted version.
|
type of the controlling expression, not an unpromoted version.
|
Reported as PR c/2454 by
|
Reported as PR c/2454 by
|
Andreas Krakowczyk <Andreas.Krakowczyk@fujitsu-siemens.com>. */
|
Andreas Krakowczyk <Andreas.Krakowczyk@fujitsu-siemens.com>. */
|
|
|
extern void exit (int);
|
extern void exit (int);
|
extern void abort (void);
|
extern void abort (void);
|
|
|
static int i;
|
static int i;
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
i = -1;
|
i = -1;
|
switch ((signed char) i) {
|
switch ((signed char) i) {
|
case 255:
|
case 255:
|
abort ();
|
abort ();
|
default:
|
default:
|
exit (0);
|
exit (0);
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.