shithub: scc

ref: afec1bc0e0ba8999c706adf6438cd74d18715a88
dir: /tests/libc/execute/0004-abort.c/

View raw version
#include <assert.h>
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>

/*
output:
aborting
end:
*/

int
main(void)
{
	printf("aborting\n");
	assert(signal(SIGABRT, SIG_IGN) != SIG_ERR);
	abort();
	printf("borning\n");

	return 0;
}