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