aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/comp-types-12.mm
blob: 3ef2ad3c5ccd87ebdb5148f4888123d83c7395aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* APPLE LOCAL file mainline */
/* { dg-do compile } */
#include <objc/Object.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;
}