URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
struct tiny
|
struct tiny
|
{
|
{
|
char c;
|
char c;
|
char d;
|
char d;
|
};
|
};
|
|
|
f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
|
f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
|
{
|
{
|
if (x.c != 10)
|
if (x.c != 10)
|
abort();
|
abort();
|
if (x.d != 20)
|
if (x.d != 20)
|
abort();
|
abort();
|
|
|
if (y.c != 11)
|
if (y.c != 11)
|
abort();
|
abort();
|
if (y.d != 21)
|
if (y.d != 21)
|
abort();
|
abort();
|
|
|
if (z.c != 12)
|
if (z.c != 12)
|
abort();
|
abort();
|
if (z.d != 22)
|
if (z.d != 22)
|
abort();
|
abort();
|
|
|
if (l != 123)
|
if (l != 123)
|
abort ();
|
abort ();
|
}
|
}
|
|
|
main ()
|
main ()
|
{
|
{
|
struct tiny x[3];
|
struct tiny x[3];
|
x[0].c = 10;
|
x[0].c = 10;
|
x[1].c = 11;
|
x[1].c = 11;
|
x[2].c = 12;
|
x[2].c = 12;
|
x[0].d = 20;
|
x[0].d = 20;
|
x[1].d = 21;
|
x[1].d = 21;
|
x[2].d = 22;
|
x[2].d = 22;
|
f (3, x[0], x[1], x[2], (long) 123);
|
f (3, x[0], x[1], x[2], (long) 123);
|
exit(0);
|
exit(0);
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.