1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o - 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuctypedef struct S { 4*f4a2713aSLionel Sambuc int * pint; 5*f4a2713aSLionel Sambuc int size; 6*f4a2713aSLionel Sambuc}NSRec; 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc@interface SUPER 9*f4a2713aSLionel Sambuc- (NSRec) MainMethod : (NSRec) Arg1 : (NSRec) Arg2; 10*f4a2713aSLionel Sambuc@end 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc@interface MyDerived : SUPER 13*f4a2713aSLionel Sambuc{ 14*f4a2713aSLionel Sambuc NSRec d; 15*f4a2713aSLionel Sambuc} 16*f4a2713aSLionel Sambuc- (int) instanceMethod; 17*f4a2713aSLionel Sambuc- (int) another : (int) arg; 18*f4a2713aSLionel Sambuc- (NSRec) MainMethod : (NSRec) Arg1 : (NSRec) Arg2; 19*f4a2713aSLionel Sambuc@end 20*f4a2713aSLionel Sambuc 21*f4a2713aSLionel Sambuc@implementation MyDerived 22*f4a2713aSLionel Sambuc- (int) instanceMethod { 23*f4a2713aSLionel Sambuc return [self another : [self MainMethod : d : d].size]; 24*f4a2713aSLionel Sambuc} 25*f4a2713aSLionel Sambuc 26*f4a2713aSLionel Sambuc- (int) another : (int) arg { return arg; } 27*f4a2713aSLionel Sambuc- (NSRec) MainMethod : (NSRec) Arg1 : (NSRec) Arg2 { return Arg2; } 28*f4a2713aSLionel Sambuc@end 29*f4a2713aSLionel Sambuc 30