blob: c7e1c1a96a42dce18f4a203c184b065e813e076d [file] [log] [blame]
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// rdar://11515196
@interface NSArray @end
@interface NSMutableArray : NSArray
- (void) addObject;
@end
@interface BPXLAppDelegate
- (NSArray *)arrayOfThings;
@end
@interface BPXLAppDelegate ()
@property (retain, nonatomic) NSMutableArray *arrayOfThings;
@end
@implementation BPXLAppDelegate
@synthesize arrayOfThings=_arrayOfThings;
- (void)applicationDidFinishLaunching
{
[self.arrayOfThings addObject];
}
@end
// CHECK: define internal [[RET:%.*]]* @"\01-[BPXLAppDelegate arrayOfThings
// CHECK: [[THREE:%.*]] = bitcast [[OPQ:%.*]]* [[TWO:%.*]] to [[RET]]*
// CHECK: ret [[RET]]* [[THREE]]