blob: d341032b82fad76563bc49de418da219617c123a [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
42#if 0
43@interface A (Cat)
44@end
45
46@implementation A (Cat)
47@end
48#endif
49
50int f0(id x) {
51 @synchronized(x) {
52 }
53
54 @try {
55 @throw x;
56 } @catch(A *e) {
57 @throw;
58 } @finally {
59 ;
60 }
61
62 for (id y in x) {
63 break;
64 }
65}
66
67struct s0 {
68 @defs(A);
69};