mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-14 07:10:05 +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);
|
|
}
|