summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr37026.c
blob: 694e2ca2a5f75ff317e57d21d312ed24dfe9aaf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct a {
    long a1;
    long a2;
};
struct b {
    struct a b1;
    struct a b2;
};
void bar (struct b *c)
{
  c->b1 = c->b2 = ((struct a) { foo(), 0 });
}