[cfe-commits] r69539 - in /cfe/trunk/test/Preprocessor: poison.c pragma_poison.c

Chris Lattner sabre at nondot.org
Sun Apr 19 13:16:27 PDT 2009


Author: lattner
Date: Sun Apr 19 15:16:27 2009
New Revision: 69539

URL: http://llvm.org/viewvc/llvm-project?rev=69539&view=rev
Log:
rename test for consistency with other pragma test.

Added:
    cfe/trunk/test/Preprocessor/pragma_poison.c
      - copied unchanged from r69538, cfe/trunk/test/Preprocessor/poison.c
Removed:
    cfe/trunk/test/Preprocessor/poison.c

Removed: cfe/trunk/test/Preprocessor/poison.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/poison.c?rev=69538&view=auto

==============================================================================
--- cfe/trunk/test/Preprocessor/poison.c (original)
+++ cfe/trunk/test/Preprocessor/poison.c (removed)
@@ -1,20 +0,0 @@
-// RUN: clang-cc %s -Eonly -verify
-
-#pragma GCC poison rindex
-rindex(some_string, 'h');   // expected-error {{attempt to use a poisoned identifier}}
-
-#define BAR _Pragma ("GCC poison XYZW")  XYZW /*NO ERROR*/
-  XYZW      // ok
-BAR
-  XYZW      // expected-error {{attempt to use a poisoned identifier}}
-
-// Pragma poison shouldn't warn from macro expansions defined before the token
-// is poisoned.
-
-#define strrchr rindex2
-#pragma GCC poison rindex2
-
-// Can poison multiple times.
-#pragma GCC poison rindex2
-
-strrchr(some_string, 'h');   // ok.





More information about the cfe-commits mailing list