summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/comp-types-11.m
blob: 959cc049a329436fb552312360fa2ecc3f1d5d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { 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;
}