summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/alias-14.c
blob: a1216b7d374204ad2bcfec7dae95a004b1a47bee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do run } */
/* { dg-options "-O2" } */

struct s
{
  long long a:12;
  long long b:12;
  long long c:40;
};

struct s s, *p = &s;

int
main ()
{
  p->a = 1;
  s.a = 0;
  s.b = 0;
  return p->a + s.b;
}