summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/pr26443.C
blob: 1db87ab87784524d6044833e1149d90872b5489d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do compile }

struct A
{
    double x[4];
};

struct B
{
    A y[2];
};

A foo(B *p)
{
    for ( int i=0; i<4; ++i )
        p->y[1].x[i]=0;

    A a;
    return a;
}