1 2 3 4 5 6 7 8 9 10 11 12 13
/* { dg-do compile } */ #include "../objc-obj-c++-shared/Object1.h" @interface Derived: Object @end extern Object* foo(void); static Derived *test(void) { Derived *m = foo(); /* { dg-warning "initialization from distinct Objective\\-C type" } */ return m; }