mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-14 01:00:07 +00:00
7237d70417
* 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.
15 lines
118 B
C
15 lines
118 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
void
|
|
fx (void)
|
|
{
|
|
puts ("At exit fx");
|
|
}
|
|
|
|
void
|
|
foo (void)
|
|
{
|
|
atexit (fx);
|
|
}
|