URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [comp-types-12.m] - Rev 715
Go to most recent revision | Compare with Previous | Blame | View Log
/* When assigning function pointers, allow for covariant return types and contravariant argument types. */ /* { dg-do compile } */ #include "../objc-obj-c++-shared/TestsuiteObject.h" @class Derived; TestsuiteObject *ExternFunc (TestsuiteObject *filePath, TestsuiteObject *key); typedef id FuncSignature (TestsuiteObject *arg1, Derived *arg2); @interface Derived: TestsuiteObject + (void)registerFunc:(FuncSignature *)function; @end void foo(void) { [Derived registerFunc: ExternFunc]; }
Go to most recent revision | Compare with Previous | Blame | View Log