aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-02-18 22:37:54 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-02-18 22:37:54 +0000
commit9ab8063575d35ae65d04f6514da644e660d14847 (patch)
treea44a6fc43dc9d2965fd31b09bdcef865cd8bce7e
parent98ec3f78b2f4c17e5aeb5f0c5df4b4ffbfc85565 (diff)
Test case for // rdar://8850818
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125982 91177308-0d34-0410-b5e6-96231b3b80d8
-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 1ebc59e96b..922a034799 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