about summary refs log tree commit diff
path: root/elf/nodel2mod1.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/nodel2mod1.c')
-rw-r--r--elf/nodel2mod1.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/elf/nodel2mod1.c b/elf/nodel2mod1.c
new file mode 100644
index 0000000000..acddc4cf8b
--- /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)
+{
+}