| 1 | // RUN: %clang_cc1 -fsyntax-only -Wimplicit-atomic-properties -verify -Wno-objc-root-class %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}} |
| 12 | @synthesize P,P1,P2; // expected-warning {{property is assumed atomic by default}} |
| 13 | @end |
| 14 | |