blob: 371abf2ade9cd886d437dcb3c15d65cbf5435379 [file] [log] [blame]
John McCalld1e40d52011-10-02 01:16:38 +00001// RUN: %clang_cc1 -emit-llvm -o %t %s
Fariborz Jahanianebf9ed32009-03-20 20:48:19 +00002
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 Dunbar6a3b29e2009-04-24 02:38:10 +000025
26// Reopen of an interface after use.
27
28@interface A {
29@public
30 int x;
31}
32@property int p0;
33@end
34
35int f0(A *a) {
36 return a.p0;
37}
38
39@implementation A
40@synthesize p0 = _p0;
41@end
Douglas Gregore7aa27a2011-12-20 15:50:13 +000042
43@interface B
44@end
45@class B;
46@implementation B
47@end