[cfe-commits] r38605 - /cfe/cfe/trunk/test/Preprocessor/_Pragma-poison.c
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:23:08 PDT 2007
Author: sabre
Date: Wed Jul 11 11:23:08 2007
New Revision: 38605
URL: http://llvm.org/viewvc/llvm-project?rev=38605&view=rev
Log:
new testcase
Added:
cfe/cfe/trunk/test/Preprocessor/_Pragma-poison.c (with props)
Added: cfe/cfe/trunk/test/Preprocessor/_Pragma-poison.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/_Pragma-poison.c?rev=38605&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/_Pragma-poison.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/_Pragma-poison.c Wed Jul 11 11:23:08 2007
@@ -0,0 +1,8 @@
+// RUN: clang %s 2>&1 | grep error | wc -l | grep 1 &&
+// RUN: clang %s 2>&1 | grep 7:4 | wc -l | grep 1
+
+#define BAR _Pragma ("GCC poison XYZW") XYZW /*NO ERROR*/
+XYZW // NO ERROR
+BAR
+ XYZW // ERROR
+
Propchange: cfe/cfe/trunk/test/Preprocessor/_Pragma-poison.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/_Pragma-poison.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
More information about the cfe-commits
mailing list