URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Origin: PR c/1540 from Mattias Lampe <lampe@tu-harburg.de>,
|
/* Origin: PR c/1540 from Mattias Lampe <lampe@tu-harburg.de>,
|
adapted to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
|
adapted to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
|
GCC 2.95.2 fails, CVS GCC of 2001-01-13 passes. */
|
GCC 2.95.2 fails, CVS GCC of 2001-01-13 passes. */
|
extern void abort (void);
|
extern void abort (void);
|
extern void exit (int);
|
extern void exit (int);
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
int array1[1] = { 1 };
|
int array1[1] = { 1 };
|
int array2[2][1]= { { 1 }, { 0 } };
|
int array2[2][1]= { { 1 }, { 0 } };
|
if (array1[0] != 1)
|
if (array1[0] != 1)
|
abort ();
|
abort ();
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.