scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <assert.h>
 2#include <stdio.h>
 3#include <signal.h>
 4#include <stdlib.h>
 5
 6/*
 7output:
 8aborting
 9end:
10*/
11
12int ret = 1;
13
14void
15handler(int dummy)
16{
17	_Exit(ret);
18}
19
20int
21main(void)
22{
23	printf("aborting\n");
24	assert(signal(SIGABRT, handler) != SIG_ERR);
25	ret = 0;
26	abort();
27	printf("borning\n");
28
29	return 1;
30}