URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
typedef __SIZE_TYPE__ size_t;
|
typedef __SIZE_TYPE__ size_t;
|
extern size_t strlen (const char *s);
|
extern size_t strlen (const char *s);
|
|
|
typedef struct A {
|
typedef struct A {
|
int a, b;
|
int a, b;
|
} A;
|
} A;
|
|
|
typedef struct B {
|
typedef struct B {
|
struct A **a;
|
struct A **a;
|
int b;
|
int b;
|
} B;
|
} B;
|
|
|
A *a;
|
A *a;
|
int b = 1, c;
|
int b = 1, c;
|
B d[1];
|
B d[1];
|
|
|
void foo (A *x, const char *y, int z)
|
void foo (A *x, const char *y, int z)
|
{
|
{
|
c = y[4] + z * 25;
|
c = y[4] + z * 25;
|
}
|
}
|
|
|
A *bar (const char *v, int w, int x, const char *y, int z)
|
A *bar (const char *v, int w, int x, const char *y, int z)
|
{
|
{
|
if (w)
|
if (w)
|
abort ();
|
abort ();
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
void test (const char *x, int *y)
|
void test (const char *x, int *y)
|
{
|
{
|
foo (d->a[d->b], "test", 200);
|
foo (d->a[d->b], "test", 200);
|
d->a[d->b] = bar (x, b ? 0 : 65536, strlen (x), "test", 201);
|
d->a[d->b] = bar (x, b ? 0 : 65536, strlen (x), "test", 201);
|
d->a[d->b]->a++;
|
d->a[d->b]->a++;
|
if (y)
|
if (y)
|
d->a[d->b]->b = *y;
|
d->a[d->b]->b = *y;
|
}
|
}
|
|
|
int main ()
|
int main ()
|
{
|
{
|
d->b = 0;
|
d->b = 0;
|
d->a = &a;
|
d->a = &a;
|
test ("", 0);
|
test ("", 0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.