John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -o %t %s |
Fariborz Jahanian | ebf9ed3 | 2009-03-20 20:48:19 +0000 | [diff] [blame] | 2 | |
| 3 | @interface BASE { |
| 4 | @private |
| 5 | void* _reserved; |
| 6 | } |
| 7 | @end |
| 8 | |
| 9 | @class PVR; |
| 10 | |
| 11 | @interface PVRHandldler |
| 12 | { |
| 13 | PVR *_imageBrowser; |
| 14 | } |
| 15 | @end |
| 16 | |
| 17 | @implementation PVRHandldler @end |
| 18 | |
| 19 | |
| 20 | @interface PVR : BASE |
| 21 | @end |
| 22 | |
| 23 | @implementation PVR |
| 24 | @end |
Daniel Dunbar | 6a3b29e | 2009-04-24 02:38:10 +0000 | [diff] [blame] | 25 | |
| 26 | // Reopen of an interface after use. |
| 27 | |
| 28 | @interface A { |
| 29 | @public |
| 30 | int x; |
| 31 | } |
| 32 | @property int p0; |
| 33 | @end |
| 34 | |
| 35 | int f0(A *a) { |
| 36 | return a.p0; |
| 37 | } |
| 38 | |
| 39 | @implementation A |
| 40 | @synthesize p0 = _p0; |
| 41 | @end |
Douglas Gregor | e7aa27a | 2011-12-20 15:50:13 +0000 | [diff] [blame] | 42 | |
| 43 | @interface B |
| 44 | @end |
| 45 | @class B; |
| 46 | @implementation B |
| 47 | @end |