xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/forward-class-impl-metadata.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -emit-llvm -o %t %s
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuc@interface BASE  {
4*f4a2713aSLionel Sambuc@private
5*f4a2713aSLionel Sambuc    void* _reserved;
6*f4a2713aSLionel Sambuc}
7*f4a2713aSLionel Sambuc@end
8*f4a2713aSLionel Sambuc
9*f4a2713aSLionel Sambuc@class PVR;
10*f4a2713aSLionel Sambuc
11*f4a2713aSLionel Sambuc@interface PVRHandldler
12*f4a2713aSLionel Sambuc{
13*f4a2713aSLionel Sambuc          PVR *_imageBrowser;
14*f4a2713aSLionel Sambuc}
15*f4a2713aSLionel Sambuc@end
16*f4a2713aSLionel Sambuc
17*f4a2713aSLionel Sambuc@implementation PVRHandldler @end
18*f4a2713aSLionel Sambuc
19*f4a2713aSLionel Sambuc
20*f4a2713aSLionel Sambuc@interface PVR   : BASE
21*f4a2713aSLionel Sambuc@end
22*f4a2713aSLionel Sambuc
23*f4a2713aSLionel Sambuc@implementation PVR
24*f4a2713aSLionel Sambuc@end
25*f4a2713aSLionel Sambuc
26*f4a2713aSLionel Sambuc// Reopen of an interface after use.
27*f4a2713aSLionel Sambuc
28*f4a2713aSLionel Sambuc@interface A {
29*f4a2713aSLionel Sambuc@public
30*f4a2713aSLionel Sambuc  int x;
31*f4a2713aSLionel Sambuc}
32*f4a2713aSLionel Sambuc@property int p0;
33*f4a2713aSLionel Sambuc@end
34*f4a2713aSLionel Sambuc
35*f4a2713aSLionel Sambucint f0(A *a) {
36*f4a2713aSLionel Sambuc  return a.p0;
37*f4a2713aSLionel Sambuc}
38*f4a2713aSLionel Sambuc
39*f4a2713aSLionel Sambuc@implementation A
40*f4a2713aSLionel Sambuc@synthesize p0 = _p0;
41*f4a2713aSLionel Sambuc@end
42*f4a2713aSLionel Sambuc
43*f4a2713aSLionel Sambuc@interface B
44*f4a2713aSLionel Sambuc@end
45*f4a2713aSLionel Sambuc@class B;
46*f4a2713aSLionel Sambuc@implementation B
47*f4a2713aSLionel Sambuc@end
48