summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gimplefe-15.c
blob: ca990313c4ebb6d69a45c21d11a6e6179410b6fd (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 = __real q;
  p->a = b;
  x.y.b[b] = b;
  b = p->y.b[1];
  b = x.a;
  return b;
}