| 1 |
void abort (void); |
| 2 |
void exit (int); |
| 3 |
|
| 4 |
typedef __SIZE_TYPE__ size_t; |
| 5 |
extern size_t strlen (const char *s); |
| 6 |
|
| 7 |
typedef struct A { |
| 8 |
int a, b; |
| 9 |
} A; |
| 10 |
|
| 11 |
typedef struct B { |
| 12 |
struct A **a; |
| 13 |
int b; |
| 14 |
} B; |
| 15 |
|
| 16 |
A *a; |
| 17 |
int b = 1, c; |
| 18 |
B d[1]; |
| 19 |
|
| 20 |
void foo (A *x, const char *y, int z) |
| 21 |
{ |
| 22 |
c = y[4] + z * 25; |
| 23 |
} |
| 24 |
|
| 25 |
A *bar (const char *v, int w, int x, const char *y, int z) |
| 26 |
{ |
| 27 |
if (w) |
| 28 |
abort (); |
| 29 |
exit (0); |
| 30 |
} |
| 31 |
|
| 32 |
void test (const char *x, int *y) |
| 33 |
{ |
| 34 |
foo (d->a[d->b], "test", 200); |
| 35 |
d->a[d->b] = bar (x, b ? 0 : 65536, strlen (x), "test", 201); |
| 36 |
d->a[d->b]->a++; |
| 37 |
if (y) |
| 38 |
d->a[d->b]->b = *y; |
| 39 |
} |
| 40 |
|
| 41 |
int main () |
| 42 |
{ |
| 43 |
d->b = 0; |
| 44 |
d->a = &a; |
| 45 |
test ("", 0); |
| 46 |
} |