blob: 32176755ef76d28b525d2dc288e07713cf0a70fc [file] [log] [blame]
// RUN: clang-cc -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;
}