1 /* Test simple ObjC types casts. */
2 /* Author: Nicola Pero <nicola@brainstorm.co.uk>. */
3 /* { dg-do compile } */
16 id<MyProtocol> obj_p = nil;
20 /* All these casts should generate no warnings. */
25 obj_c = (MyClass *)obj;
26 obj_c = (MyClass *)obj_p;
27 obj_c = (MyClass *)obj_C;
28 obj_p = (id<MyProtocol>)obj;
29 obj_p = (id<MyProtocol>)obj_c;
30 obj_p = (id<MyProtocol>)obj_C;