aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/objc.dg/comp-types-11.m
blob: 9de3cee64d9e49c07cbba9d6a1730a2160eda2e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
#include "../objc-obj-c++-shared/TestsuiteObject.h"

@interface Derived: TestsuiteObject
@end

extern TestsuiteObject* foo(void);
static Derived *test(void)
{
   Derived *m = foo();   /* { dg-warning "initialization from distinct Objective\\-C type" } */

   return m;
}