2012-06-20 14:18:46 +08:00
|
|
|
// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o - | grep objc_msgSendSuper | grep MainMethod
|
2007-12-06 01:29:46 +08:00
|
|
|
|
2008-12-24 04:11:22 +08:00
|
|
|
typedef struct objc_selector *SEL;
|
|
|
|
typedef struct objc_object *id;
|
|
|
|
|
2007-12-06 01:29:46 +08:00
|
|
|
@interface SUPER
|
|
|
|
- (int) MainMethod;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface MyDerived : SUPER
|
|
|
|
- (int) instanceMethod;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MyDerived
|
|
|
|
- (int) instanceMethod {
|
|
|
|
return [super MainMethod];
|
|
|
|
}
|
|
|
|
@end
|