1 /* { dg-do compile } */
3 #include "../objc-obj-c++-shared/TestsuiteObject.h"
10 @interface Derived1: TestsuiteObject
13 @interface Derived2: TestsuiteObject
18 TestsuiteObject *o = [TestsuiteObject new];
19 return o; /* { dg-warning "class .TestsuiteObject. does not implement the .Foo. protocol" } */
22 @implementation Derived2
24 Derived2 *o = [super new];
25 return o; /* { dg-warning "distinct Objective\\-C type in return" } */