blob: b0a6597989e1123b96abd02a2fe965b514714e9f [file] [log] [blame]
Fariborz Jahaniandd4430e2010-12-17 22:28:16 +00001// 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