Author: andersca
Date: Sat Oct  2 12:08:38 2010
New Revision: 115410

URL: http://llvm.org/viewvc/llvm-project?rev=115410&view=rev
Log:
Rename a test in preparation for fixing PR8169.

Added:
    cfe/trunk/test/SemaObjCXX/reserved-keyword-methods.mm
      - copied, changed from r115409, 
cfe/trunk/test/SemaObjCXX/reserved-keyword-selectors.mm
Removed:
    cfe/trunk/test/SemaObjCXX/reserved-keyword-selectors.mm

Copied: cfe/trunk/test/SemaObjCXX/reserved-keyword-methods.mm (from r115409, 
cfe/trunk/test/SemaObjCXX/reserved-keyword-selectors.mm)
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/reserved-keyword-methods.mm?p2=cfe/trunk/test/SemaObjCXX/reserved-keyword-methods.mm&p1=cfe/trunk/test/SemaObjCXX/reserved-keyword-selectors.mm&r1=115409&r2=115410&rev=115410&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjCXX/reserved-keyword-selectors.mm (original)
+++ cfe/trunk/test/SemaObjCXX/reserved-keyword-methods.mm Sat Oct  2 12:08:38 
2010
@@ -1,35 +1,41 @@
 // RUN: %clang_cc1 -fsyntax-only -verify %s
 
+#define FOR_EACH_KEYWORD(macro) \
+macro(asm) \
+macro(bool) \
+macro(catch) \
+macro(class) \
+macro(const_cast) \
+macro(delete) \
+macro(dynamic_cast) \
+macro(explicit) \
+macro(export) \
+macro(false) \
+macro(friend) \
+macro(mutable) \
+macro(namespace) \
+macro(new) \
+macro(operator) \
+macro(private) \
+macro(protected) \
+macro(public) \
+macro(reinterpret_cast) \
+macro(static_cast) \
+macro(template) \
+macro(this) \
+macro(throw) \
+macro(true) \
+macro(try) \
+macro(typename) \
+macro(typeid) \
+macro(using) \
+macro(virtual) \
+macro(wchar_t)
+
+
+#define DECLARE_METHOD(name) - (void)name;
+
 @interface A 
-- (void)asm;
-- (void)bool;
-- (void)catch;
-- (void)class;
-- (void)const_cast;
-- (void)delete;
-- (void)dynamic_cast;
-- (void)explicit;
-- (void)export;
-- (void)false;      
-- (void)friend;
-- (void)mutable;
-- (void)namespace;
-- (void)new;
-- (void)operator;
-- (void)private;
-- (void)protected;
-- (void)public;
-- (void)reinterpret_cast;
-- (void)static_cast;
-- (void)template;
-- (void)this;
-- (void)throw;
-- (void)true;
-- (void)try;
-- (void)typename;
-- (void)typeid;
-- (void)using;
-- (void)virtual;
-- (void)wchar_t;
+FOR_EACH_KEYWORD(DECLARE_METHOD)
 @end
 

Removed: cfe/trunk/test/SemaObjCXX/reserved-keyword-selectors.mm
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/reserved-keyword-selectors.mm?rev=115409&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjCXX/reserved-keyword-selectors.mm (original)
+++ cfe/trunk/test/SemaObjCXX/reserved-keyword-selectors.mm (removed)
@@ -1,35 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
-
-...@interface A 
-- (void)asm;
-- (void)bool;
-- (void)catch;
-- (void)class;
-- (void)const_cast;
-- (void)delete;
-- (void)dynamic_cast;
-- (void)explicit;
-- (void)export;
-- (void)false;      
-- (void)friend;
-- (void)mutable;
-- (void)namespace;
-- (void)new;
-- (void)operator;
-- (void)private;
-- (void)protected;
-- (void)public;
-- (void)reinterpret_cast;
-- (void)static_cast;
-- (void)template;
-- (void)this;
-- (void)throw;
-- (void)true;
-- (void)try;
-- (void)typename;
-- (void)typeid;
-- (void)using;
-- (void)virtual;
-- (void)wchar_t;
-...@end
-


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to