Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/20040817-1.c

raw
1 /* PR 17051: SRA failed to rename the VOPS properly. */
2 /* { dg-additional-options "-std=gnu89" } */
3
4 struct A
5 {
6 char c, d;
7 };
8
9 void foo(struct A *p)
10 {
11 struct A a = *p;
12
13 if (p->c)
14 bar1(a);
15 else
16 {
17 if (p) bar2(a,a.c);
18 bar3(a.c);
19 }
20 }