blob: 2edb181e83bc9b81b2670e5a4bb213eb72f6e126 [file] [log] [blame]
// RUN: clang -fsyntax-only -verify -pedantic %s
@interface Derived
@end
@interface Object @end
extern Object* foo(void);
static Derived *test(void)
{
Derived *m = foo(); // expected-warning {{incompatible pointer types initializing 'Object *', expected 'Derived *'}}
return m;
}