blob: 68412d899b9c5703514d16543a7d8937a4301a83 [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o - | grep objc_msgSendSuper | grep MainMethod
Fariborz Jahanian71274312007-12-05 17:29:46 +00002
Steve Naroff46a98a72008-12-23 20:11:22 +00003typedef struct objc_selector *SEL;
4typedef struct objc_object *id;
5
Fariborz Jahanian71274312007-12-05 17:29:46 +00006@interface SUPER
7- (int) MainMethod;
8@end
9
10@interface MyDerived : SUPER
11- (int) instanceMethod;
12@end
13
14@implementation MyDerived
15- (int) instanceMethod {
16 return [super MainMethod];
17}
18@end