diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-09-28 00:14:50 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-09-28 00:14:50 +0000 |
commit | 7237d704179869ecff1d00fd78ff90bce7a9edf3 (patch) | |
tree | bf65cb96eed298e57537c07a1645cc6c4a6805b6 /dlfcn/bug-atexit2-lib.c | |
parent | b6caa3a6151d02ae94515c198c5d78fa296562f5 (diff) | |
download | glibc-7237d704179869ecff1d00fd78ff90bce7a9edf3.tar.gz |
[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.
Diffstat (limited to 'dlfcn/bug-atexit2-lib.c')
-rw-r--r-- | dlfcn/bug-atexit2-lib.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dlfcn/bug-atexit2-lib.c b/dlfcn/bug-atexit2-lib.c new file mode 100644 index 0000000000..ca39657566 --- /dev/null +++ b/dlfcn/bug-atexit2-lib.c @@ -0,0 +1,14 @@ +#include <stdio.h> +#include <stdlib.h> + +void +fx (void) +{ + puts ("At exit fx"); +} + +void +foo (void) +{ + atexit (fx); +} |