2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr78148.c
blobc3c9b2e9a892aaec6ff2a646a8113112dffb4be9
1 /* PR target/78148 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fcompare-debug" } */
5 struct A { int a, b; };
6 struct B { char c, d; };
7 extern void bar (struct A, struct B);
8 struct C { char e, f; } a;
9 struct D
11 int g;
12 struct C h[4];
14 struct D *e;
16 struct D
17 foo (void)
19 int b;
20 struct B c;
21 struct A d;
22 d.b = c.c = c.d = 0;
23 bar (d, c);
26 void
27 baz ()
29 e->h[0].e = e->h[0].f = 0;
30 foo ();