OSDN Git Service

Fix PR 17408 and PR 17409.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / index-1.c
1 int a[] =
2 {
3   0,  1,  2,  3,  4,  5,  6,  7,  8,  9,
4   10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
5   20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
6   30, 31, 32, 33, 34, 35, 36, 37, 38, 39
7 };
8
9 int
10 f (long n)
11 {
12   return a[n - 100000];
13 }
14
15 main ()
16 {
17   if (f (100030L) != 30)
18     abort();
19   exit (0);
20 }