#import <objc/Object.h>

@interface Object (Foo)
-foo;
@end

void sendFoo(id object)
{
    [object foo];
}

void main()
{
    id object = [Object new];
    sendFoo(object);
}
    