glibc/dlfcn/bug-atexit2-lib.c
Ulrich Drepper 7237d70417 [BZ #1158]
* stdlib/cxa_atexit.c (__new_exitfn): Rewrite to preserve order in
	which the functions were registered.
	* dlfcn/Makefile: Add rules to build and run bug-atexit1 and
	bug-atexit2.
	* dlfcn/bug-atext1.c: New file.
	* dlfcn/bug-atext1-lib.c: New file.
	* dlfcn/bug-atext2.c: New file.
	* dlfcn/bug-atext2-lib.c: New file.
2005-09-28 00:14:50 +00:00

15 lines
118 B
C

#include <stdio.h>
#include <stdlib.h>
void
fx (void)
{
puts ("At exit fx");
}
void
foo (void)
{
atexit (fx);
}