1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fobjc-runtime=objfw -emit-llvm -o - %s | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc// Test the ObjFW runtime. 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc@interface Test0 6*f4a2713aSLionel Sambuc+ (void) test; 7*f4a2713aSLionel Sambuc@end 8*f4a2713aSLionel Sambucvoid test0(void) { 9*f4a2713aSLionel Sambuc [Test0 test]; 10*f4a2713aSLionel Sambuc} 11*f4a2713aSLionel Sambuc// CHECK-LABEL: define void @test0() 12*f4a2713aSLionel Sambuc// CHECK: [[T0:%.*]] = call i8* (i8*, i8*, ...)* (i8*, i8*)* @objc_msg_lookup(i8* bitcast (i64* @_OBJC_CLASS_Test0 to i8*), 13*f4a2713aSLionel Sambuc// CHECK-NEXT: [[T1:%.*]] = bitcast i8* (i8*, i8*, ...)* [[T0]] to void (i8*, i8*)* 14*f4a2713aSLionel Sambuc// CHECK-NEXT: call void [[T1]](i8* bitcast (i64* @_OBJC_CLASS_Test0 to i8*), 15*f4a2713aSLionel Sambuc// CHECK-NEXT: ret void 16