| Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -fsyntax-only -verify |
| Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
| Steve Naroff | 7d1117d | 2008-12-17 14:13:49 +0000 | [diff] [blame] | 3 | @interface A |
| 4 | { | ||||
| 5 | int ivar; | ||||
| 6 | } | ||||
| 7 | @end | ||||
| 8 | |||||
| 9 | @interface B : A | ||||
| 10 | - (int)ivar; | ||||
| 11 | @end | ||||
| 12 | |||||
| 13 | @implementation B | ||||
| 14 | - (int)ivar { | ||||
| 15 | return ivar; | ||||
| 16 | } | ||||
| 17 | @end | ||||