1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc@interface Object 4*f4a2713aSLionel Sambuc- (void)foo; 5*f4a2713aSLionel Sambuc@end 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc@interface Class1 8*f4a2713aSLionel Sambuc- (void)setWindow:(Object *)wdw; 9*f4a2713aSLionel Sambuc@end 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambucvoid foo(void) { 12*f4a2713aSLionel Sambuc Object *obj; 13*f4a2713aSLionel Sambuc [obj setWindow:0]; // expected-warning{{'Object' may not respond to 'setWindow:'}} 14*f4a2713aSLionel Sambuc} 15