(root)/
gcc-13.2.0/
gcc/
testsuite/
objc.dg/
comp-types-11.m
/* { 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;
}