brintos

brintos / llvm-project-archived public Read only

0
0
Text · 259 B · e395f43 Raw
15 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3@interface Object 4- (void)foo;5@end6 7@interface Class18- (void)setWindow:(Object *)wdw;9@end10 11void foo(void) {12  Object *obj;13  [obj setWindow:0]; // expected-warning{{'Object' may not respond to 'setWindow:'}}14}15