blob: 777666dfd938334e32c83aa19abbb90e1f4ab618 [file] [log] [blame]
Fariborz Jahanian268bc8c2009-03-03 22:19:15 +00001// RUN: clang -fsyntax-only -verify %s
2
3@interface Object
4- (void)foo;
5@end
6
7@interface Class1
8- (void)setWindow:(Object *)wdw;
9@end
10
11void foo(void) {
12 Object *obj;
13 [obj setWindow:0]; // expected-warning{{Object may not respond to 'setWindow:'}}
14}