13 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -Wimplicit-atomic-properties -verify -Wno-objc-root-class %s2 3@interface Super4@property (nonatomic, readwrite) int P; // OK5@property (atomic, readwrite) int P1; // OK6@property (readwrite) int P2; // expected-note {{property declared here}}7@property int P3; // expected-note {{property declared here}}8@end9 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@end13