blob: 887a2862250a9d6f819da469c4188a6af7ff5acd [file] [log] [blame]
Patrick Beardb2f68202012-04-06 18:12:22 +00001// RUN: %clang_cc1 -fsyntax-only -Wimplicit-atomic-properties -fobjc-default-synthesize-properties -verify -Wno-objc-root-class %s
Fariborz Jahaniandd4430e2010-12-17 22:28:16 +00002// rdar://8774580
3
4@interface Super
5@property (nonatomic, readwrite) int P; // OK
Fariborz Jahanian45937ae2011-06-11 00:45:12 +00006@property (atomic, readwrite) int P1; // OK
Fariborz Jahaniandd4430e2010-12-17 22:28:16 +00007@property (readwrite) int P2; // expected-note {{property declared here}}
8@property int P3; // expected-note {{property declared here}}
9@end
10
Richard Trieu2fe9b7f2011-12-15 00:38:15 +000011@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}}
Fariborz Jahaniandd4430e2010-12-17 22:28:16 +000013@end