#include <Cocoa/Cocoa.h>

@interface NotAString : NSObject
- (unsigned)length;
@end

@implementation NotAString

- (unsigned)length {
   puts("length was called!");
   return 0;
}

@end

int main(void) {
    CFStringGetLength([[NotAString alloc] init]);
    return 0;
}

