1 /* Test whether casting 'id' to a specific class removes method lookup
3 /* Author: Ziemowit Laski <zlaski@apple.com>. */
5 /* { dg-do compile } */
12 + (Int1 *)classMethod1;
14 - (Int1 *)instanceMethod:(Int2 *)arg; /* { dg-bogus "using" } */
18 + (Int1 *)classMethod1;
21 - (int)instanceMethod:(int)arg; /* { dg-bogus "also found" } */
25 id i = [(Int2 *)[Int1 classMethod1] int2Method]; /* { dg-bogus "may not respond to" } */
26 int j = [(Int2 *)[Int2 classMethod2] instanceMethod: 45]; /* { dg-bogus "multiple methods" } */
27 /* { dg-bogus "invalid conversion" "" { target *-*-* } 25 } */
28 /* { dg-bogus "invalid conversion" "" { target *-*-* } 25 } */