1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -std=c++11 -emit-llvm -o - %s | FileCheck %s
8 @interface NSMutableDictionary : NSObject
11 class XClipboardDataSet
13 NSMutableDictionary* mClipData = [NSMutableDictionary new];
16 @interface AppDelegate @end
18 @implementation AppDelegate
19 - (void)applicationDidFinishLaunching
21 XClipboardDataSet clip;
25 // CHECK: [[mClipData:%.*]] = getelementptr inbounds %class.XClipboardDataSet, %class.XClipboardDataSet*
26 // CHECK: [[ZERO:%.*]] = load %struct._class_t*, %struct._class_t** @"OBJC_CLASSLIST_REFERENCES_$_"
27 // CHECK: [[ONE:%.*]] = load i8*, i8** @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
36 __attribute__((objc_root_class))
45 // CHECK-NOT: define internal i8* @"\01-[Foo .cxx_construct