summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-08-23 21:00:01 +0000
committerAnders Carlsson <andersca@mac.com>2008-08-23 21:00:01 +0000
commitf93f56a28e4c240dfafa7be7263e9ac91f55cf7c (patch)
tree423342817e9a508f1aad51845a45ec4944f30376 /clang/test
parentda42964999ce7385f3511160fd254ea3ddaa27ec (diff)
downloadbcm5719-llvm-f93f56a28e4c240dfafa7be7263e9ac91f55cf7c.tar.gz
bcm5719-llvm-f93f56a28e4c240dfafa7be7263e9ac91f55cf7c.zip
Reserved C++ words are valid selectors in Objective-C++
llvm-svn: 55253
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaObjCXX/reserved-keyword-selectors.mm35
1 files changed, 35 insertions, 0 deletions
diff --git a/clang/test/SemaObjCXX/reserved-keyword-selectors.mm b/clang/test/SemaObjCXX/reserved-keyword-selectors.mm
new file mode 100644
index 00000000000..79f747fe8a1
--- /dev/null
+++ b/clang/test/SemaObjCXX/reserved-keyword-selectors.mm
@@ -0,0 +1,35 @@
+// RUN: clang -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
+
OpenPOWER on IntegriCloud