#include #include int main(void) { printf("PXObject test\n"); PXObject *object = [PXObject allocDebug]; if (object == nil) { fprintf(stderr, "PXObject failed to alloc :c\n"); return 1; } object = [object init]; if (object == nil) { fprintf(stderr, "PXObject failed to init :c\n"); return 1; } [object dealloc]; printf("If you got this far without segfaulting or crashing it means it allocated and initialized a PXObject, then deallocated it. Yayayayayay\n"); return 0; }