[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / SemaObjC / comptypes-6.m
blob98cf488792123e579ef665d48c98a25ae71a9a17
1 // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
3 @interface Derived
4 @end
6 @interface Object @end
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 *'}}
14    return m;