1f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o - | FileCheck %s 2f4a2713aSLionel Sambuc 3f4a2713aSLionel Sambuc@class Some; 4f4a2713aSLionel Sambuc 5f4a2713aSLionel Sambuc@protocol Proto 6f4a2713aSLionel Sambuc- (id)initSome:(Some *)anArg; 7f4a2713aSLionel Sambuc@end 8f4a2713aSLionel Sambuc 9f4a2713aSLionel Sambuc 10f4a2713aSLionel Sambuc@interface Table <Proto> 11f4a2713aSLionel Sambuc@end 12f4a2713aSLionel Sambuc 13f4a2713aSLionel Sambuc@interface BetterTable: Table 14f4a2713aSLionel Sambuc 15f4a2713aSLionel Sambuc- (id)initSome:(Some *)arg; 16f4a2713aSLionel Sambuc 17f4a2713aSLionel Sambuc@end 18f4a2713aSLionel Sambuc 19f4a2713aSLionel Sambuc@implementation BetterTable 20f4a2713aSLionel Sambuc 21f4a2713aSLionel Sambuc- (id)initSome:(Some *)arg { 22f4a2713aSLionel Sambuc 23f4a2713aSLionel Sambuc if(self=[super initSome:arg]) 24f4a2713aSLionel Sambuc { 25f4a2713aSLionel Sambuc ; 26f4a2713aSLionel Sambuc } 27*0a6a1f1dSLionel Sambuc// CHECK: load %struct._objc_class** getelementptr inbounds (%struct._objc_class* @OBJC_CLASS_BetterTable, i32 0, i32 1) 28f4a2713aSLionel Sambuc 29f4a2713aSLionel Sambuc return self; 30f4a2713aSLionel Sambuc} 31f4a2713aSLionel Sambuc@end 32f4a2713aSLionel Sambuc 33