Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Steve Naroff | dd53eb5 | 2009-03-05 20:12:00 +0000 | [diff] [blame] | 2 | |
| 3 | @interface B |
| 4 | +(int) classGetter; |
| 5 | -(int) getter; |
| 6 | @end |
| 7 | |
| 8 | @interface A : B |
| 9 | @end |
| 10 | |
| 11 | @implementation A |
| 12 | +(int) classGetter { |
| 13 | return 0; |
| 14 | } |
| 15 | |
| 16 | +(int) classGetter2 { |
| 17 | return super.classGetter; |
| 18 | } |
| 19 | |
| 20 | -(void) method { |
| 21 | int x = super.getter; |
| 22 | } |
| 23 | @end |
| 24 | |
| 25 | void f0() { |
| 26 | // FIXME: not implemented yet. |
| 27 | //int l1 = A.classGetter; |
| 28 | int l2 = [A classGetter2]; |
| 29 | } |
| 30 | |