2 /* { dg-xfail-if "PR23614" { "*-*-*" } { "*" } { "" } } */
4 #include <objc/Object.h>
10 MyWidget(void) { a = 17; }
19 @interface Foo: Object
22 @interface Bar: Foo <MyProto>
25 @interface Container: Object
26 + (MyWidget *)elementForView:(Foo *)view;
33 - (MyWidget *)widget {
38 @implementation Container
39 + (MyWidget *)elementForView:(Foo *)view
41 MyWidget *widget = nil;
42 if ([view conformsTo:@protocol(MyProto)]) {
43 widget = [(Foo <MyProto> *)view widget];
51 MyWidget *w = [Container elementForView: view];