summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20000412-1.c
blob: c9f71305df25c09f1d4c5ee177454d9947d818a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
short int i = -1;
const char * const wordlist[207];

const char * const *
foo(void)
{
  register const char * const *wordptr = &wordlist[207u + i];
  return wordptr;
}

int
main()
{
  if (foo() != &wordlist[206])
    abort ();
  exit(0);
}