llvm-project/clang/test/Preprocessor/poison_expansion.c

10 lines
177 B
C
Raw Normal View History

2006-06-25 13:40:49 +08:00
// RUN: clang %s -E 2>&1 | not grep error
#define strrchr rindex
#pragma GCC poison rindex
// Can poison multiple times.
#pragma GCC poison rindex
strrchr(some_string, 'h');