1 /* The following should NOT generate "may not respond to" warnings,
2 since a forward-declared @class (instance) should be treated like a
5 /* { dg-do compile } */
7 #include <objc/Object.h>
11 void foo(NotKnown *n) {
13 [n nonexistent_method]; /* { dg-warning "no .\\-nonexistent_method. method found" } */
16 /* { dg-warning "Messages without a matching method signature" "" { target *-*-* } 0 } */
17 /* { dg-warning "will be assumed to return .id. and accept" "" { target *-*-* } 0 } */
18 /* { dg-warning ".\.\.\.. as arguments" "" { target *-*-* } 0 } */