Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjC / warn-implicit-atomic-property.m
bloba5d587cf2a2b5824007b6534db031eec76df3593
1 // RUN: %clang_cc1 -fsyntax-only -Wimplicit-atomic-properties -verify -Wno-objc-root-class %s
3 @interface Super
4 @property (nonatomic, readwrite) int P; // OK
5 @property (atomic, readwrite) int P1; // OK
6 @property (readwrite) int P2; // expected-note {{property declared here}}
7 @property int P3; // expected-note {{property declared here}}
8 @end
10 @implementation Super // expected-warning {{property is assumed atomic when auto-synthesizing the property}}
11 @synthesize P,P1,P2; // expected-warning {{property is assumed atomic by default}}
12 @end