From 0e523cba82e93c1d842e885f175ff4cd9018f719 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 2 Oct 2010 17:08:38 +0000 Subject: [PATCH] Rename a test in preparation for fixing PR8169. llvm-svn: 115410 --- .../SemaObjCXX/reserved-keyword-methods.mm | 41 +++++++++++++++++++ .../SemaObjCXX/reserved-keyword-selectors.mm | 35 ---------------- 2 files changed, 41 insertions(+), 35 deletions(-) create mode 100644 clang/test/SemaObjCXX/reserved-keyword-methods.mm delete mode 100644 clang/test/SemaObjCXX/reserved-keyword-selectors.mm diff --git a/clang/test/SemaObjCXX/reserved-keyword-methods.mm b/clang/test/SemaObjCXX/reserved-keyword-methods.mm new file mode 100644 index 000000000000..2ed166ef60e6 --- /dev/null +++ b/clang/test/SemaObjCXX/reserved-keyword-methods.mm @@ -0,0 +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 +FOR_EACH_KEYWORD(DECLARE_METHOD) +@end + diff --git a/clang/test/SemaObjCXX/reserved-keyword-selectors.mm b/clang/test/SemaObjCXX/reserved-keyword-selectors.mm deleted file mode 100644 index 3c4bef595daa..000000000000 --- a/clang/test/SemaObjCXX/reserved-keyword-selectors.mm +++ /dev/null @@ -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 -