2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr59374-2.c
blobd791b987ef61aa76581ab91acc911e452187fb18
1 /* { dg-do run } */
2 /* { dg-additional-options "-ftree-slp-vectorize" } */
4 extern void abort (void);
6 static struct X { void *a; void *b; } a, b;
7 static struct X *p;
9 void __attribute__((noinline))
10 foo (void)
12 void *tem = a.b;
13 p->b = (void *)0;
14 b.b = tem;
15 b.a = a.a;
18 int main()
20 p = &a;
21 a.b = &a;
22 foo ();
23 if (b.b != &a)
24 abort ();
25 return 0;