зеркало из https://github.com/microsoft/clang.git
17 строки
294 B
Objective-C
17 строки
294 B
Objective-C
// 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;
|
|
}
|
|
|