summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/method-undefined-warn-1.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/method-undefined-warn-1.m')
-rw-r--r--test/SemaObjC/method-undefined-warn-1.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/SemaObjC/method-undefined-warn-1.m b/test/SemaObjC/method-undefined-warn-1.m
index 1ebc59e..922a034 100644
--- a/test/SemaObjC/method-undefined-warn-1.m
+++ b/test/SemaObjC/method-undefined-warn-1.m
@@ -40,3 +40,17 @@
- (void) cls_meth1 : (int) arg2{}
@end
+
+// rdar://8850818
+@interface Root @end
+
+@interface Foo : Root @end
+
+@implementation Foo
+
+- (void)someFunction { return; }
+
++ (void)anotherFunction {
+ [self someFunction]; // expected-warning {{method '+someFunction' not found (return type defaults to 'id')}}
+}
+@end
OpenPOWER on IntegriCloud