summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gimplefe-16.c
blob: 2949249151ed4f3b8227a1c0c52382f7216b5515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O -fgimple" } */

struct Y { int b[2]; };
struct X { int a; struct Y y; };
struct X x;

int __GIMPLE ()
foo (struct X *p, _Complex int q)
{
  int b;
  b_1 = __real q;
  p_4(D)->a = b_1;
  x.y.b[b_1] = b_1;
  b_2 = p->y.b[1];
  b_3 = x.a;
  return b_3;
}