1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
3 @interface NSObject @end
7 int __CFConstantStringClassReference[24];
9 @interface Bar : NSObject
10 +(void)format:(NSString *)format,...;
13 @interface Foo : NSObject
17 static inline void _inlineFunction(void) {
24 +(NSString *)someMethod {
33 // CHECK: @__CFConstantStringClassReference ={{.*}} global [24 x i32] zeroinitializer, align 16
34 // CHECK: @_unnamed_cfstring_{{.*}} = private global %struct.__NSConstantString_tag { ptr @__CFConstantStringClassReference
36 // CHECK-LABEL: define internal void @_inlineFunction()
37 // CHECK: [[ZERO:%.*]] = load ptr, ptr @"OBJC_CLASSLIST_REFERENCES_
38 // CHECK-NEXT: [[SEL:%.*]] = load ptr, ptr @OBJC_SELECTOR_REFERENCES_
39 // CHECK-NEXT: call void (ptr, ptr, ptr, ...) @objc_msgSend(ptr noundef [[ZERO]], ptr noundef [[SEL]], ptr noundef @_unnamed_cfstring_{{.*}})
40 // CHECK-NEXT: ret void