Merged r157653 through r157895 into branch.
[official-gcc.git] / gcc / testsuite / objc.dg / comp-types-11.m
blob959cc049a329436fb552312360fa2ecc3f1d5d76
1 /* { dg-do compile } */
2 #include "../objc-obj-c++-shared/Object1.h"
4 @interface Derived: Object
5 @end
7 extern Object* foo(void);
8 static Derived *test(void)
10    Derived *m = foo();   /* { dg-warning "initialization from distinct Objective\\-C type" } */
12    return m;