mirror of
https://github.com/opnsense/src.git
synced 2026-02-27 03:40:37 -05:00
16 lines
299 B
Objective-C
16 lines
299 B
Objective-C
// RUN: %clang_cc1 -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;
|
|
}
|
|
|