1 // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
8 extern Object* foo(void);
10 static Derived *test(void)
12 Derived *m = foo(); // expected-warning {{incompatible pointer types initializing 'Derived *' with an expression of type 'Object *'}}