blob: 6230ae9ca3d01d659c31dac1cdd2bf127685453f [file] [log] [blame]
/* { dg-do run } */
/* { dg-additional-options "-ftree-slp-vectorize" } */
extern void abort (void);
static struct X { void *a; void *b; } a, b;
void __attribute__((noinline))
foo (void)
{
void *tem = a.b;
a.b = (void *)0;
b.b = tem;
b.a = a.a;
}
int main()
{
a.b = &a;
foo ();
if (b.b != &a)
abort ();
return 0;
}