[cfe-commits] r38572 - in /cfe/cfe/trunk/test/Preprocessor: poison.c poison_expansion.c
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:22:49 PDT 2007
Author: sabre
Date: Wed Jul 11 11:22:49 2007
New Revision: 38572
URL: http://llvm.org/viewvc/llvm-project?rev=38572&view=rev
Log:
New testcases
Added:
cfe/cfe/trunk/test/Preprocessor/poison.c (with props)
cfe/cfe/trunk/test/Preprocessor/poison_expansion.c (with props)
Added: cfe/cfe/trunk/test/Preprocessor/poison.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/poison.c?rev=38572&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/poison.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/poison.c Wed Jul 11 11:22:49 2007
@@ -0,0 +1,4 @@
+// RUN: clang %s -E 2>&1 | grep error
+
+#pragma GCC poison rindex
+rindex(some_string, 'h');
Propchange: cfe/cfe/trunk/test/Preprocessor/poison.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/poison.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: cfe/cfe/trunk/test/Preprocessor/poison_expansion.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/poison_expansion.c?rev=38572&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/poison_expansion.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/poison_expansion.c Wed Jul 11 11:22:49 2007
@@ -0,0 +1,9 @@
+// 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');
Propchange: cfe/cfe/trunk/test/Preprocessor/poison_expansion.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/poison_expansion.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
More information about the cfe-commits
mailing list