shithub: scc

ref: 45616fa5eb14079439ca632cdff42ed216fdef97
dir: /tests/libc/execute/0001-abort.c/

View raw version

#include <stdio.h>
#include <signal.h>
#include <stdlib.h>

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

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

	return 1;
}