diff --git a/test/native_objc_test/automated_ref_count_test.m b/test/native_objc_test/automated_ref_count_test.m index d2493896..cad84af2 100644 --- a/test/native_objc_test/automated_ref_count_test.m +++ b/test/native_objc_test/automated_ref_count_test.m @@ -89,12 +89,12 @@ - (ArcTestObject*)returnsRetained NS_RETURNS_RETAINED { @end -id createAutoreleasePool() { - return [NSAutoreleasePool new]; +void* createAutoreleasePool() { + return (void*)[NSAutoreleasePool new]; } -void destroyAutoreleasePool(id pool) { - [pool release]; +void destroyAutoreleasePool(void* pool) { + [((NSAutoreleasePool*)pool) release]; } @implementation RefCounted