brintos

brintos / llvm-project-archived public Read only

0
0
Text · 590 B · 2581aa5 Raw
30 lines · plain
1// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5  %s -o -2 3typedef struct S {4	int * pint;5	int size;6}NSRec;7 8@interface SUPER9- (NSRec) MainMethod : (NSRec) Arg1 : (NSRec) Arg2;10@end11 12@interface MyDerived : SUPER13{14	NSRec d;15}16- (int) instanceMethod;17- (int) another : (int) arg;18- (NSRec) MainMethod : (NSRec) Arg1 : (NSRec) Arg2;19@end20 21@implementation MyDerived 22- (int) instanceMethod {23  return [self another : [self MainMethod : d : d].size];24}25 26- (int) another : (int) arg { return arg; }27- (NSRec) MainMethod : (NSRec) Arg1 : (NSRec) Arg2 { return Arg2; }28@end29 30