Sign in
fuchsia
/
third_party
/
llvm-test-suite
/
19325b49638b2d5f51d9f9379165b7e1f0c51ae5
/
.
/
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
;
}