2011-10-02 09:16:38 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -Wimplicit-atomic-properties -fobjc-default-synthesize-properties -verify %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
|
|
|
|
|
|
|
|
@implementation Super // expected-warning {{property is assumed atomic when auto-synthesizing the property [-Wimplicit-atomic-properties]}}
|
2011-06-11 08:45:12 +08:00
|
|
|
@synthesize P,P1,P2; // expected-warning {{property is assumed atomic by default [-Wimplicit-atomic-properties]}}
|
2010-12-18 06:28:16 +08:00
|
|
|
@end
|