aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr40797.c
blob: 001d1b507bdfe79bfca3400d2f0721be0d0d1dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
typedef struct str { short x, y;} S;

static short
bar (short ch, short sl, short sr, short tl, short tr)
{
  return 0;
}

void
foo (short ch, S *pi, short nc, S *po)
{
  short clo, chi, lo, hi;

  po->x = bar (ch, clo, chi, pi[lo].x, pi[hi].x);
  po->y = bar (ch, clo, chi, pi[lo].y, pi[hi].y);
}