| // RUN: %clang_cc1 -fsyntax-only -fobjc-default-synthesize-properties -verify -Wno-objc-root-class %s |
| @property (readwrite, nonatomic) int foo, foo1, foo2, foo3; |
| @property (readwrite, nonatomic) int PROP; |
| - (void)setFoo:(int)value { |
| _foo = foo; // expected-error {{use of undeclared identifier 'foo'}} |
| - (void)setFoo1:(int)value { |
| - (void)setFoo2:(int)value { |
| _foo = foo2; // expected-error {{use of undeclared identifier 'foo2'}} |
| - (void)setFoo3:(int)value { |
| @synthesize foo2 = _foo2; |
| - (void)setPROP:(int)value { |