Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
Fariborz Jahanian | 268bc8c | 2009-03-03 22:19:15 +0000 | [diff] [blame] | 2 | |
3 | @interface Object | ||||
4 | - (void)foo; | ||||
5 | @end | ||||
6 | |||||
7 | @interface Class1 | ||||
8 | - (void)setWindow:(Object *)wdw; | ||||
9 | @end | ||||
10 | |||||
11 | void foo(void) { | ||||
12 | Object *obj; | ||||
13 | [obj setWindow:0]; // expected-warning{{Object may not respond to 'setWindow:'}} | ||||
14 | } |