URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* PR optimization/12544 */
|
/* PR optimization/12544 */
|
/* Origin: Tony Hosking <hosking@cs.purdue.edu> */
|
/* Origin: Tony Hosking <hosking@cs.purdue.edu> */
|
|
|
/* Verify that non-local structures passed by invisible
|
/* Verify that non-local structures passed by invisible
|
reference are correctly put in the stack. */
|
reference are correctly put in the stack. */
|
|
|
typedef struct {
|
typedef struct {
|
int a;
|
int a;
|
int f;
|
int f;
|
} A;
|
} A;
|
|
|
A *b;
|
A *b;
|
|
|
void x (A a) {
|
void x (A a) {
|
void y () {
|
void y () {
|
a.a = 0;
|
a.a = 0;
|
}
|
}
|
|
|
b = &a;
|
b = &a;
|
y();
|
y();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.