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

void abort (void);

int table[32][256];

int main(void)
{
  int i, j;

  for (i = 0; i < 32; i++)
    for (j = 0; j < 256; j++)
      table[i][j] = ((signed char)j) * i;

  if (table[9][132] != -1116)
    abort ();

  return 0;
}
OpenPOWER on IntegriCloud