diff options
Diffstat (limited to 'elf/reldep8mod1.c')
-rw-r--r-- | elf/reldep8mod1.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/elf/reldep8mod1.c b/elf/reldep8mod1.c new file mode 100644 index 0000000000..acddc4cf8b --- /dev/null +++ b/elf/reldep8mod1.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) +{ +} |