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