Manman Ren | 387ff7f | 2016-01-26 18:52:43 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | // expected-no-diagnostics | ||||
3 | |||||
4 | @interface Root | ||||
5 | -(id) alloc; | ||||
6 | -(id) init; | ||||
7 | @end | ||||
8 | |||||
9 | @interface A : Root { | ||||
10 | int x; | ||||
11 | int z; | ||||
12 | } | ||||
13 | @property int x; | ||||
14 | @property int y; | ||||
15 | @property int z; | ||||
16 | @property(readonly) int ro, ro2; | ||||
17 | @property (class) int c; | ||||
18 | @property (class) int c2; | ||||
19 | @end | ||||
20 | |||||
21 | @implementation A | ||||
22 | @dynamic x; | ||||
23 | @synthesize z; | ||||
24 | @dynamic c; | ||||
25 | @end | ||||
26 | |||||
27 | int test() { | ||||
28 | A *a = [[A alloc] init]; | ||||
29 | return a.x; | ||||
30 | } |