2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -rewrite-objc %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
|