aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr81063.c
blob: 399e2d19eb3495d872861b8af6be6910333b0b71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* { dg-do run } */
/* { dg-options "-O" } */

struct A
{
  int b;
  int c:2;
};

struct B
{
  int e;
  struct A f;
} g = {0, {0, 1}}, j;

struct A *h = &g.f;

int main ()
{
  struct A k;
  struct B l = j, i = l;
  if (!i.f.b)
    k = i.f;
  *h = k;
  if (g.f.c != 0)
    __builtin_abort ();
  return 0;
}