2013-09-28 04:21:48 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -Wimplicit-atomic-properties -verify -Wno-objc-root-class %s
|
2010-12-18 06:28:16 +08:00
|
|
|
// rdar://8774580
|
|
|
|
|
|
|
|
@interface Super
|
|
|
|
@property (nonatomic, readwrite) int P; // OK
|
2011-06-11 08:45:12 +08:00
|
|
|
@property (atomic, readwrite) int P1; // OK
|
2010-12-18 06:28:16 +08:00
|
|
|
@property (readwrite) int P2; // expected-note {{property declared here}}
|
|
|
|
@property int P3; // expected-note {{property declared here}}
|
|
|
|
@end
|
|
|
|
|
2011-12-15 08:38:15 +08:00
|
|
|
@implementation Super // expected-warning {{property is assumed atomic when auto-synthesizing the property}}
|
|
|
|
@synthesize P,P1,P2; // expected-warning {{property is assumed atomic by default}}
|
2010-12-18 06:28:16 +08:00
|
|
|
@end
|