]>
Commit | Line | Data |
---|---|---|
a654d5d0 JJ |
1 | /* PR target/78148 */ |
2 | /* { dg-do compile } */ | |
3 | /* { dg-options "-O2 -fcompare-debug" } */ | |
4 | ||
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 | |
10 | { | |
11 | int g; | |
12 | struct C h[4]; | |
13 | }; | |
14 | struct D *e; | |
15 | ||
16 | struct D | |
17 | foo (void) | |
18 | { | |
19 | int b; | |
20 | struct B c; | |
21 | struct A d; | |
22 | d.b = c.c = c.d = 0; | |
23 | bar (d, c); | |
24 | } | |
25 | ||
26 | void | |
27 | baz () | |
28 | { | |
29 | e->h[0].e = e->h[0].f = 0; | |
30 | foo (); | |
31 | } |