1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -std=c++11 -emit-llvm -o - %s | FileCheck %s 2// rdar://16299964 3 4@interface NSObject 5+ (id)new; 6@end 7 8@interface NSMutableDictionary : NSObject 9@end 10 11class XClipboardDataSet 12{ 13 NSMutableDictionary* mClipData = [NSMutableDictionary new]; 14}; 15 16@interface AppDelegate @end 17 18@implementation AppDelegate 19- (void)applicationDidFinishLaunching 20{ 21 XClipboardDataSet clip; 22} 23@end 24 25// CHECK: [[mClipData:%.*]] = getelementptr inbounds %class.XClipboardDataSet* 26// CHECK: [[ZERO:%.*]] = load %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_" 27// CHECK: [[ONE:%.*]] = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_" 28// CHECK: [[TWO:%.*]] = bitcast %struct._class_t* [[ZERO]] to i8* 29// CHECK: [[CALL:%.*]] = call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* [[TWO]], i8* [[ONE]]) 30// CHECK: [[THREE:%.*]] = bitcast i8* [[CALL]] to [[T:%.*]]* 31// CHECK: store [[T]]* [[THREE]], [[T]]** [[mClipData]], align 8 32 33