1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
21 - (int) Meth { return _PROP; }
24 - (int) Meth1 { return PROP1; } // expected-error {{use of undeclared identifier 'PROP1'}}
26 - (int) Meth2 { return PROP2; } // expected-error {{use of undeclared identifier 'PROP2'}}
29 - (int) Meth3 { return PROP3; } // expected-error {{use of undeclared identifier 'PROP3'}}
30 @synthesize PROP3=IVAR;
32 - (int) Meth4 { return PROP4; }
33 @synthesize PROP4=PROP4; // expected-note 4 {{'PROP4' declared here}}
35 - (int) Meth5 { return bar; }
36 @synthesize bar = _bar;
38 - (int) Meth6 { return _bar1; }
42 @implementation I(CAT)
43 - (int) Meth { return PROP1; } // expected-error {{use of undeclared identifier 'PROP1'}}
46 @implementation I(r8251648)
47 - (int) Meth1: (int) bar {