OSDN Git Service

[gcc/testsuite/ChangeLog]
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / obj-c++.dg / comp-types-12.mm
1 /* { dg-do compile } */
2 #include <objc/Object.h>
3
4 @interface Derived: Object
5 @end
6
7 extern Object* foo(void);
8 static Derived *test(void)
9 {
10    Derived *m = foo();   /* { dg-warning "initialization from distinct Objective\\-C type" } */
11
12    return m;
13 }
14