llvm-project/clang/test/Preprocessor/_Pragma-poison.c

9 lines
222 B
C
Raw Normal View History

// RUN: clang -Eonly %s 2>&1 | grep error | wc -l | grep 1 &&
// RUN: clang -Eonly %s 2>&1 | grep 7:4 | wc -l | grep 1
2006-07-03 04:31:44 +08:00
#define BAR _Pragma ("GCC poison XYZW") XYZW /*NO ERROR*/
XYZW // NO ERROR
BAR
XYZW // ERROR