summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/class-extension-dup-methods.m
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2015-10-13 23:27:34 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2015-10-13 23:27:34 +0000
commit3a43754329bfd08939e43fc8642e8902ef32f103 (patch)
tree310976e099ae74d7be9a0ccc85ac058690ef2103 /clang/test/SemaObjC/class-extension-dup-methods.m
parent87156d25bc07c415ab429b02b43c459cd23f5b9d (diff)
downloadbcm5719-llvm-3a43754329bfd08939e43fc8642e8902ef32f103.tar.gz
bcm5719-llvm-3a43754329bfd08939e43fc8642e8902ef32f103.zip
[Sema/objc] When checking for unimplemented methods treat methods from class extensions as continuation of the class interface.
llvm-svn: 250250
Diffstat (limited to 'clang/test/SemaObjC/class-extension-dup-methods.m')
-rw-r--r--clang/test/SemaObjC/class-extension-dup-methods.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/class-extension-dup-methods.m b/clang/test/SemaObjC/class-extension-dup-methods.m
index 5f463aed168..446d2be0378 100644
--- a/clang/test/SemaObjC/class-extension-dup-methods.m
+++ b/clang/test/SemaObjC/class-extension-dup-methods.m
@@ -26,3 +26,15 @@ __attribute__((objc_root_class)) @interface AppDelegate
- (void)someMethodWithArgument:(float)argument; // OK. No warning to be issued here.
+ (void)someMethodWithArgument:(float)argument : (float)argument2; // expected-error {{duplicate declaration of method 'someMethodWithArgument::'}}
@end
+
+__attribute__((objc_root_class))
+@interface Test
+-(void)meth; // expected-note {{declared here}}
+@end
+
+@interface Test()
+-(void)meth;
+@end
+
+@implementation Test // expected-warning {{method definition for 'meth' not found}}
+@end
OpenPOWER on IntegriCloud