/* Test whether a basic malloc invocation works. */ #include #include "../basic.h" int main(void) { void* ptr = malloc(42); if ( !ptr ) err(1, "malloc"); return 0; }