URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 338 |
extern void abort (void);
|
extern void abort (void);
|
|
|
typedef struct Bar {
|
typedef struct Bar {
|
char c[129];
|
char c[129];
|
} Bar __attribute__((__aligned__(128)));
|
} Bar __attribute__((__aligned__(128)));
|
|
|
typedef struct Foo {
|
typedef struct Foo {
|
Bar bar[4];
|
Bar bar[4];
|
} Foo;
|
} Foo;
|
|
|
Foo foo[4];
|
Foo foo[4];
|
|
|
int main()
|
int main()
|
{
|
{
|
int i, j;
|
int i, j;
|
Foo *foop = &foo[0];
|
Foo *foop = &foo[0];
|
|
|
for (i=0; i < 4; i++) {
|
for (i=0; i < 4; i++) {
|
Bar *bar = &foop->bar[i];
|
Bar *bar = &foop->bar[i];
|
for (j=0; j < 129; j++) {
|
for (j=0; j < 129; j++) {
|
bar->c[j] = 'a' + i;
|
bar->c[j] = 'a' + i;
|
}
|
}
|
}
|
}
|
|
|
if (foo[0].bar[3].c[128] != 'd')
|
if (foo[0].bar[3].c[128] != 'd')
|
abort ();
|
abort ();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.