John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Fariborz Jahanian | 140ab23 | 2011-08-31 17:37:55 +0000 | [diff] [blame] | 2 | // rdar://8843851 |
| 3 | |
| 4 | int* global; |
| 5 | |
| 6 | @interface I |
| 7 | - (void) Meth; |
| 8 | @property int prop; |
| 9 | @property int prop1; |
| 10 | @end |
| 11 | |
| 12 | @implementation I |
| 13 | + (void) _defaultMinSize { }; |
| 14 | static void _initCommon() { |
| 15 | Class graphicClass; |
| 16 | [graphicClass _defaultMinSize]; |
| 17 | } |
| 18 | |
| 19 | - (void) Meth { [self Forw]; } // No warning now |
| 20 | - (void) Forw {} |
| 21 | - (int) func { return prop; } // compiles - synthesized ivar will be accessible here. |
| 22 | - (int)get_g { return global; } // No warning here - synthesized ivar will be accessible here. |
| 23 | @synthesize prop; |
| 24 | @synthesize prop1=global; |
| 25 | @end |