Rebase.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr59374-3.c
blobab0014d8f13f3d1bff3b7dcf65a0f5b9206a6a55
1 extern void abort (void);
3 static struct X { void *a; void *b; } a, b;
5 void __attribute__((noinline)) foo (void)
7 void *tem = a.b;
8 a.b = (void *)0;
9 b.b = tem;
10 b.a = a.a;
11 a.a = tem;
14 int main()
16 a.b = &a;
17 foo ();
18 if (b.b != &a)
19 abort ();
20 return 0;