diff options
Diffstat (limited to 'elf/reldep9mod1.c')
-rw-r--r-- | elf/reldep9mod1.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/elf/reldep9mod1.c b/elf/reldep9mod1.c new file mode 100644 index 0000000000..249a2bae1c --- /dev/null +++ b/elf/reldep9mod1.c @@ -0,0 +1,23 @@ +#include <stdlib.h> +void +foo (void) +{ + exit (0); +} + +void +__attribute__((destructor)) +bar (void) +{ + static int i; + foo (); + ++i; +} + +void +__attribute__((constructor)) +destr (void) +{ + extern void baz (void); + baz (); +} |