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