aboutsummaryrefslogtreecommitdiff
path: root/tests/AutoreleasePool.m
blob: fe258f55f24b8d05a53c7362a0399c9418b0e4cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <Paradox/Core.h>
#include <stdio.h>

int main(void) {
	printf("PXObject autorelease test\n");

	@autoreleasepool {
		PXObject *object = [PXObject new];
		printf("created object in autorelease pool\n");
#ifdef PARADOX_DEBUG_FEATURES
		printf("attempting healthCheck\n");
		[object healthCheck];
#else
		printf("Paradox compiled without debug features, skipping healthCheck\n");
		/* suppress unused variable warning */
		(void)object;
#endif
	}
	printf("autorelease pool end\n");
	printf("test complete\n");
}