Steve Naroff | 7926f10 | 2008-11-17 22:29:32 +0000 | [diff] [blame^] | 1 | // RUN: clang -fsyntax-only -verify %s |
2 | |||||
3 | @interface Foo | ||||
4 | - iMethod; | ||||
5 | + cMethod; | ||||
6 | @end | ||||
7 | |||||
8 | @interface A | ||||
9 | @end | ||||
10 | |||||
11 | @interface B : A | ||||
12 | - (void)instanceMethod; | ||||
13 | + classMethod; | ||||
14 | @end | ||||
15 | |||||
16 | @implementation B | ||||
17 | |||||
18 | - (void)instanceMethod { | ||||
19 | [super iMethod]; // expected-warning{{method '-iMethod' not found (return type defaults to 'id')}} | ||||
20 | } | ||||
21 | |||||
22 | + classMethod { | ||||
23 | [super cMethod]; // expected-warning{{method '+cMethod' not found (return type defaults to 'id')}} | ||||
24 | } | ||||
25 | @end |