2012-02-05 02:56:43 +08:00
|
|
|
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %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
|