gcc/testsuite/gcc.c-torture/execute/20000412-1.c
raw| 1 | void abort(void); |
| 2 | void exit(int); |
| 3 | |
| 4 | short int i = -1; |
| 5 | const char * const wordlist[207]; |
| 6 | |
| 7 | const char * const * |
| 8 | foo(void) |
| 9 | { |
| 10 | register const char * const *wordptr = &wordlist[207u + i]; |
| 11 | return wordptr; |
| 12 | } |
| 13 | |
| 14 | int |
| 15 | main() |
| 16 | { |
| 17 | if (foo() != &wordlist[206]) |
| 18 | abort (); |
| 19 | exit(0); |
| 20 | } |