aarch64: Fix early ra for -fno-delete-dead-exceptions [PR116927]
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20010409-1.c
blob2f101f520993de12f7dda7b6ae42007d77e7508f
1 void abort (void);
2 void exit (int);
4 typedef __SIZE_TYPE__ size_t;
5 extern size_t strlen (const char *s);
7 typedef struct A {
8 int a, b;
9 } A;
11 typedef struct B {
12 struct A **a;
13 int b;
14 } B;
16 A *a;
17 int b = 1, c;
18 B d[1];
20 void foo (A *x, const char *y, int z)
22 c = y[4] + z * 25;
25 A *bar (const char *v, int w, int x, const char *y, int z)
27 if (w)
28 abort ();
29 exit (0);
32 void test (const char *x, int *y)
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;
41 int main ()
43 d->b = 0;
44 d->a = &a;
45 test ("", 0);