diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-01-12 07:52:53 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-01-12 07:52:53 +0000 |
commit | 26a676d0aae53e2e770581c133356d8c0e39268c (patch) | |
tree | fdddddb447fa187129dd83c8619612e42553a382 /elf/nodel2mod1.c | |
parent | 3c172bd1b98771e9c06b5f05cbad8a9ee473e6cf (diff) | |
download | glibc-26a676d0aae53e2e770581c133356d8c0e39268c.zip glibc-26a676d0aae53e2e770581c133356d8c0e39268c.tar.gz glibc-26a676d0aae53e2e770581c133356d8c0e39268c.tar.bz2 |
Test modules for DF_1_NODELETE test.
Diffstat (limited to 'elf/nodel2mod1.c')
-rw-r--r-- | elf/nodel2mod1.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/elf/nodel2mod1.c b/elf/nodel2mod1.c new file mode 100644 index 0000000..acddc4c --- /dev/null +++ b/elf/nodel2mod1.c @@ -0,0 +1,19 @@ +#include <stdlib.h> +void +foo (void) +{ + exit (0); +} + +void +__attribute__((destructor)) +bar (void) +{ + static int i; + foo (); + ++i; +} +void +baz (void) +{ +} |