summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20040817-1.c
blob: 158596c8f2da9d3d53290a9cccac19b3d1a0dbba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR 17051: SRA failed to rename the VOPS properly.  */

struct A
{
    char c, d;
};

void foo(struct A *p)
{
    struct A a = *p;

    if (p->c)
        bar1(a);
    else
    {
        if (p) bar2(a,a.c);
        bar3(a.c);
    }
}