// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
@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 ptr @"\01-[BPXLAppDelegate arrayOfThings
// CHECK: ret ptr [[TWO:%.*]]