John McCall | 260611a | 2012-06-20 06:18:46 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s |
| 2 | // RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s |
| 3 | // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s |
Chris Lattner | b7b58b1 | 2009-04-19 06:02:28 +0000 | [diff] [blame] | 4 | |
Fariborz Jahanian | f3710ba | 2009-02-14 20:13:28 +0000 | [diff] [blame] | 5 | |
| 6 | @interface I0 { |
| 7 | struct { int a; } a; |
| 8 | } |
| 9 | @end |
| 10 | |
| 11 | @class I2; |
| 12 | |
| 13 | @interface I1 { |
| 14 | I2 *_imageBrowser; |
| 15 | } |
| 16 | @end |
| 17 | |
| 18 | @implementation I1 |
| 19 | @end |
| 20 | |
| 21 | @interface I2 : I0 |
| 22 | @end |
| 23 | |
| 24 | @implementation I2 |
| 25 | @end |
| 26 | |
| 27 | |
Chris Lattner | b7b58b1 | 2009-04-19 06:02:28 +0000 | [diff] [blame] | 28 | // Implementations without interface declarations. |
| 29 | // rdar://6804402 |
| 30 | @class foo; |
| 31 | @implementation foo |
| 32 | @end |
| 33 | |
| 34 | @implementation bar |
| 35 | @end |
| 36 | |