blob: 87177cf243cdd7e3478015d5c832bb2d5cea7002 [file] [log] [blame]
Daniel Dunbar9ad54e32008-10-04 23:47:28 +00001//-*- ObjC -*-
2
3@protocol P0;
4
5@protocol P1
6-(void) fm0;
7@end
8
9@class B;
10
11@interface Root
12@end
13
14@interface A : Root <P1> {
15 int iv0;
16 B *iv1;
17}
18
19@property(assign,readonly) int p0;
20@property(assign,nonatomic,readwrite) int p1;
21@property(copy) id p2;
22@property(retain) id p3;
23@property(assign, getter=getme, setter=setme:) id p4;
24@end
25
26@implementation A
27@dynamic p0;
28@synthesize p1 = iv0;
29+(void) fm0 {
30 [super fm0];
31}
32-(void) im0 {
33 [super im0];
34}
35-(void) im1: (int) x, ... {
36}
37@end
38
39@implementation C : A
40@end
41
Daniel Dunbar9ad54e32008-10-04 23:47:28 +000042@interface A (Cat)
43@end
44
45@implementation A (Cat)
46@end
Daniel Dunbar9ad54e32008-10-04 23:47:28 +000047
48int f0(id x) {
49 @synchronized(x) {
50 }
51
52 @try {
53 @throw x;
54 } @catch(A *e) {
55 @throw;
56 } @finally {
57 ;
58 }
59
60 for (id y in x) {
61 break;
62 }
63}
64
65struct s0 {
66 @defs(A);
67};