1 | // RUN: %clang_cc1 -emit-llvm -o %t %s |
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 |
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 |
42 | |
43 | @interface B |
44 | @end |
45 | @class B; |
46 | @implementation B |
47 | @end |
48 | |