shithub: scc

ref: 05f7f88c948840fbfcabc5e8e0e946e705530f80
dir: /tests/libc/execute/0001-abort.c/

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

/*
output:
aborting
end:
*/

void
handler(int dummy)
{
	_Exit(0);
}

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

	return 0;
}