[llvm-commits] CVS: llvm/test/Programs/SingleSource/UnitTests/2003-05-14-AtExit.c
Chris Lattner
lattner at cs.uiuc.edu
Wed May 14 08:49:01 PDT 2003
Changes in directory llvm/test/Programs/SingleSource/UnitTests:
2003-05-14-AtExit.c added (r1.1)
---
Log message:
New testcase for atexit
---
Diffs of the changes:
Index: llvm/test/Programs/SingleSource/UnitTests/2003-05-14-AtExit.c
diff -c /dev/null llvm/test/Programs/SingleSource/UnitTests/2003-05-14-AtExit.c:1.1
*** /dev/null Wed May 14 08:48:21 2003
--- llvm/test/Programs/SingleSource/UnitTests/2003-05-14-AtExit.c Wed May 14 08:48:11 2003
***************
*** 0 ****
--- 1,16 ----
+ /* 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;
+ }
More information about the llvm-commits
mailing list