2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr57303.c
blob1ddb5a8aab34634137d03babae41af219b7ea4dc
1 /* { dg-do run } */
3 void abort (void);
5 struct S0
7 int f0;
8 };
9 struct S1
11 struct S0 f0;
14 struct S1 x = { {0} };
15 struct S1 y = { {1} };
17 static void
18 foo (struct S0 p)
20 struct S0 *l = &y.f0;
21 *l = x.f0;
22 if (p.f0)
23 *l = *l;
26 int
27 main ()
29 foo(y.f0);
30 if (y.f0.f0 != 0)
31 abort ();
32 return 0;