aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr38752.c
blob: 3d409bf96f5de42c7f2e145bc99db63462cbc567 (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
typedef struct
{
  int             baddr;
} mstruct_t;

static struct
{
  unsigned int    mapnum;
  mstruct_t       unused;
} mtab;

static mstruct_t *mactab = &mtab.unused;

int
main(void)
{
  int i;
  int addr;

  for (i=1; i <= mtab.mapnum; i++)
    if (addr < mactab[i].baddr)
      break;
  return 0;
}