1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
8 @property (readwrite, nonatomic) int foo, foo1, foo2, foo3;
9 @property (readwrite, nonatomic) int PROP;
14 @synthesize foo = _foo;
17 - (void)setFoo:(int)value {
18 _foo = foo; // expected-error {{use of undeclared identifier 'foo'}}
21 - (void)setFoo1:(int)value {
25 - (void)setFoo2:(int)value {
26 _foo = foo2; // expected-error {{use of undeclared identifier 'foo2'}}
29 - (void)setFoo3:(int)value {
33 @synthesize foo2 = _foo2;
36 @synthesize PROP=PROP;
37 - (void)setPROP:(int)value {