URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* PR c/5354 */
|
/* PR c/5354 */
|
/* Verify that GCC preserves relevant stack slots. */
|
/* Verify that GCC preserves relevant stack slots. */
|
|
|
extern void abort(void);
|
extern void abort(void);
|
extern void exit(int);
|
extern void exit(int);
|
|
|
struct large { int x, y[9]; };
|
struct large { int x, y[9]; };
|
|
|
int main()
|
int main()
|
{
|
{
|
int fixed;
|
int fixed;
|
|
|
fixed = ({ int temp1 = 2; temp1; }) - ({ int temp2 = 1; temp2; });
|
fixed = ({ int temp1 = 2; temp1; }) - ({ int temp2 = 1; temp2; });
|
if (fixed != 1)
|
if (fixed != 1)
|
abort();
|
abort();
|
|
|
fixed = ({ struct large temp3; temp3.x = 2; temp3; }).x
|
fixed = ({ struct large temp3; temp3.x = 2; temp3; }).x
|
- ({ struct large temp4; temp4.x = 1; temp4; }).x;
|
- ({ struct large temp4; temp4.x = 1; temp4; }).x;
|
if (fixed != 1)
|
if (fixed != 1)
|
abort();
|
abort();
|
|
|
exit(0);
|
exit(0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.