Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 1 | // RUN: clang %s -E 2>&1 | not grep error |
2 | |||||
3 | #define strrchr rindex | ||||
4 | #pragma GCC poison rindex | ||||
5 | |||||
6 | // Can poison multiple times. | ||||
7 | #pragma GCC poison rindex | ||||
8 | |||||
9 | strrchr(some_string, 'h'); |