Sign in
llvm
/
llvm-test-suite
/
refs/tags/llvmorg-18.1.7
/
.
/
SingleSource
/
UnitTests
/
2003-05-14-AtExit.c
blob: 1f40b665b46ecfd02d402e747c224407932eb90a [
file
] [
log
] [
blame
]
/* This test checks to make sure that LLI and the JIT both implement at_exit
* handlers correctly.
*/
#include
<stdlib.h>
#include
<stdio.h>
static
void
foo
()
{
printf
(
"Exiting!\n"
);
}
int
main
()
{
atexit
(
foo
);
printf
(
"in main\n"
);
return
0
;
}