1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -std=c++11 -emit-llvm -o - %s | FileCheck %s
7 @interface NSMutableDictionary : NSObject
10 class XClipboardDataSet
12 NSMutableDictionary* mClipData = [NSMutableDictionary new];
15 @interface AppDelegate @end
17 @implementation AppDelegate
18 - (void)applicationDidFinishLaunching
20 XClipboardDataSet clip;
24 // CHECK: [[mClipData:%.*]] = getelementptr inbounds nuw %class.XClipboardDataSet, ptr
25 // CHECK: [[CLS:%.*]] = load ptr, ptr @"OBJC_CLASSLIST_REFERENCES_$_"
26 // CHECK: [[SEL:%.*]] = load ptr, ptr @OBJC_SELECTOR_REFERENCES_
27 // CHECK: [[CALL:%.*]] = call noundef ptr @objc_msgSend(ptr noundef [[CLS]], ptr noundef [[SEL]])
28 // CHECK: store ptr [[CALL]], ptr [[mClipData]], align 8
32 __attribute__((objc_root_class))
41 // CHECK-NOT: define internal noundef ptr @"\01-[Foo .cxx_construct