tcc-stupidos/tests/tests2/128_run_atexit.c
herman ten brugge ac0604a4d4 Allow atexit to be used with -run
Add atexit code to tccrun.c and added testcase 128
2022-11-29 21:13:20 +01:00

20 lines
240 B
C

#include <stdio.h>
#include <stdlib.h>
void cleanup1(void)
{
printf ("cleanup1\n");
}
void cleanup2(void)
{
printf ("cleanup2\n");
}
int main(int argc, char **argv)
{
atexit(cleanup1);
atexit(cleanup2);
return 0;
}