* expmed.c (flip_storage_order): Deal with complex modes specially.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr43784.c
blob622232725a278903fde574760f08e419b71c9cc7
1 struct s {
2 unsigned char a[256];
3 };
4 union u {
5 struct { struct s b; int c; } d;
6 struct { int c; struct s b; } e;
7 };
9 static union u v;
10 static struct s *p = &v.d.b;
11 static struct s *q = &v.e.b;
13 static struct s __attribute__((noinline)) rp(void)
15 return *p;
18 static void qp(void)
20 *q = rp();
23 int main()
25 int i;
26 for (i = 0; i < 256; i++)
27 p->a[i] = i;
28 qp();
29 for (i = 0; i < 256; i++)
30 if (q->a[i] != i)
31 __builtin_abort();
32 return 0;