1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
17 id<MyProtocol> obj_p = nil;
21 /* All these casts should generate no warnings. */
26 obj_c = (MyClass *)obj;
27 obj_c = (MyClass *)obj_p;
28 obj_c = (MyClass *)obj_C;
29 obj_p = (id<MyProtocol>)obj;
30 obj_p = (id<MyProtocol>)obj_c;
31 obj_p = (id<MyProtocol>)obj_C;