2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -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
|