diff options
| author | Anders Carlsson <andersca@mac.com> | 2010-10-02 17:08:38 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2010-10-02 17:08:38 +0000 |
| commit | 0e523cba82e93c1d842e885f175ff4cd9018f719 (patch) | |
| tree | 4bbfb0e1241c32015b7a62880f8611d954ff4cc1 | |
| parent | 4088ceaf289eb5c6c4a007f326f22e7ade2bf2da (diff) | |
| download | bcm5719-llvm-0e523cba82e93c1d842e885f175ff4cd9018f719.tar.gz bcm5719-llvm-0e523cba82e93c1d842e885f175ff4cd9018f719.zip | |
Rename a test in preparation for fixing PR8169.
llvm-svn: 115410
| -rw-r--r-- | clang/test/SemaObjCXX/reserved-keyword-methods.mm | 41 | ||||
| -rw-r--r-- | clang/test/SemaObjCXX/reserved-keyword-selectors.mm | 35 |
2 files changed, 41 insertions, 35 deletions
diff --git a/clang/test/SemaObjCXX/reserved-keyword-methods.mm b/clang/test/SemaObjCXX/reserved-keyword-methods.mm new file mode 100644 index 00000000000..2ed166ef60e --- /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 3c4bef595da..00000000000 --- 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 - |

