Fariborz Jahanian | 8604fae | 2009-12-14 17:13:18 +0000 | [diff] [blame^] | 1 | // RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck %s |
Fariborz Jahanian | b0069ee | 2009-11-12 20:14:24 +0000 | [diff] [blame] | 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** getelementptr inbounds (%struct._objc_class* @"\01L_OBJC_CLASS_BetterTable", i32 0, i32 1) |
| 28 | |
| 29 | return self; |
| 30 | } |
| 31 | @end |
| 32 | |