From ba9deab178f68f905cb63d50de2c64641362607d Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Fri, 2 Oct 2026 22:24:55 +1300 Subject: autorelease and ARC, also switch to libobjc2 ABI instead of legacy objc ABI --- tests/AutoreleasePool.m | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/AutoreleasePool.m (limited to 'tests/AutoreleasePool.m') diff --git a/tests/AutoreleasePool.m b/tests/AutoreleasePool.m new file mode 100644 index 0000000..f0b3599 --- /dev/null +++ b/tests/AutoreleasePool.m @@ -0,0 +1,15 @@ +#include +#include + +int main(void) { + printf("PXObject autorelease test\n"); + + @autoreleasepool { + PXObject *object = [PXObject new]; + printf("created object in autorelease pool\n"); + printf("attempting healthCheck\n"); + [object healthCheck]; + } + printf("autorelease pool end\n"); + printf("test complete\n"); +} -- cgit v1.2.3