Fariborz Jahanian | bab0d39 | 2012-02-29 22:21:36 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fdiagnostics-parseable-fixits -x objective-c -fobjc-arc %s 2>&1 | FileCheck %s |
| 2 | |
| 3 | @interface I |
| 4 | @property id prop; |
| 5 | @property (atomic) id atomic_prop; |
| 6 | - (id) prop; |
| 7 | - (id) atomic_prop; |
| 8 | |
| 9 | @property ( ) id prop1; |
| 10 | |
| 11 | @property (copy, atomic, readwrite) id atomic_prop1; |
| 12 | |
| 13 | @property (copy, readwrite) id prop2; |
| 14 | @end |
| 15 | |
| 16 | @implementation I |
| 17 | @synthesize prop, prop1, prop2; |
| 18 | @synthesize atomic_prop, atomic_prop1; |
| 19 | - (id) prop { return 0; } |
| 20 | - (id) prop1 { return 0; } |
| 21 | - (id) prop2 { return 0; } |
| 22 | - (id) atomic_prop { return 0; } |
| 23 | - (id) atomic_prop1 { return 0; } |
| 24 | @end |
| 25 | |
| 26 | // CHECK: {4:1-4:10}:"@property (nonatomic) " |
| 27 | // CHECK: {9:1-9:12}:"@property (nonatomic" |
| 28 | // CHECK: {13:1-13:12}:"@property (nonatomic, " |
| 29 | |