summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20040313-1.c
blob: c05fe730f0c24e126257c571878eb2562814ff6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR middle-end/14470 */
/* Origin: Lodewijk Voge <lvoge@cs.vu.nl> */

extern void abort(void);

int main()
{
  int t[1025] = { 1024 }, d;

  d = 0;
  d = t[d]++;
  if (t[0] != 1025)
    abort();
  if (d != 1024)
    abort();
  return 0;
}