Fix the clang-wpa example.
[clang.git] / test / SemaObjC / warn-implicit-atomic-property.m
blob0b4590a42db7bbb98c8c717ad6d39170a43c3ef6
1 // RUN: %clang_cc1 -fsyntax-only -Wimplicit-atomic-properties -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -verify %s
2 // rdar://8774580
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
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