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; }