Fariborz Jahanian | dd4430e | 2010-12-17 22:28:16 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wimplicit-atomic-properties -fobjc-nonfragile-abi2 -verify %s |
| 2 | // rdar://8774580 |
| 3 | |
| 4 | @interface Super |
| 5 | @property (nonatomic, readwrite) int P; // OK |
| 6 | @property (atomic, readwrite) int P1; // OK |
| 7 | @property (readwrite) int P2; // expected-note {{property declared here}} |
| 8 | @property int P3; // expected-note {{property declared here}} |
| 9 | @end |
| 10 | |
| 11 | @implementation Super // expected-warning {{property is assumed atomic when auto-synthesizing the property [-Wimplicit-atomic-properties]}} |
| 12 | @synthesize P,P1,P2; // expected-warning {{property is assumed atomic by default [-Wimplicit-atomic-properties]}} |
| 13 | @end |