brintos

brintos / llvm-project-archived public Read only

0
0
Text · 519 B · bfca42a Raw
33 lines · plain
1// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o - | FileCheck %s2 3@class  Some;4 5@protocol Proto6- (id)initSome:(Some *)anArg;7@end8 9 10@interface Table <Proto>11@end12 13@interface BetterTable: Table14 15- (id)initSome:(Some *)arg;16 17@end18 19@implementation BetterTable20 21- (id)initSome:(Some *)arg {22 23 if(self=[super initSome:arg])24 {25	;26 }27// CHECK: load ptr, ptr getelementptr inbounds nuw (%struct._objc_class, ptr @OBJC_CLASS_BetterTable, i32 0, i32 1)28 29 return self;30}31@end32 33