| 1 |
// RUN: %clang_cc1 -fsyntax-only -Wimplicit-atomic-properties -verify -Wno-objc-root-class %s |
| 2 |
|
| 3 |
@interface Super |
| 4 |
@property (nonatomic, readwrite) int P; // OK |
| 5 |
@property (atomic, readwrite) int P1; // OK |
| 6 |
@property (readwrite) int P2; // expected-note {{property declared here}} |
| 7 |
@property int P3; // expected-note {{property declared here}} |
| 8 |
@end |
| 9 |
|
| 10 |
@implementation Super // expected-warning {{property is assumed atomic when auto-synthesizing the property}} |
| 11 |
@synthesize P,P1,P2; // expected-warning {{property is assumed atomic by default}} |
| 12 |
@end |