summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/objc-alloc-init.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenObjC/objc-alloc-init.m')
-rw-r--r--clang/test/CodeGenObjC/objc-alloc-init.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/objc-alloc-init.m b/clang/test/CodeGenObjC/objc-alloc-init.m
index e56303c7fef..a55a9835c8a 100644
--- a/clang/test/CodeGenObjC/objc-alloc-init.m
+++ b/clang/test/CodeGenObjC/objc-alloc-init.m
@@ -26,3 +26,16 @@ void f() {
// EITHER: call {{.*}} @objc_msgSend
}
@end
+
+// rdar://48247290
+@interface Base
+-(instancetype)init;
+@end
+
+@interface Derived : Base
+@end
+@implementation Derived
+-(void)meth {
+ [super init];
+}
+@end
OpenPOWER on IntegriCloud