brintos

brintos / llvm-project-archived public Read only

0
0
Text · 314 B · 0e1c3e3 Raw
17 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s2 3@interface Derived4@end5 6@interface Object @end7 8extern Object* foo(void);9 10static Derived *test(void)11{12   Derived *m = foo();   // expected-error {{incompatible pointer types initializing 'Derived *' with an expression of type 'Object *'}}13 14   return m;15}16 17