about summary refs log tree commit diff
path: root/dlfcn/bug-atexit2-lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'dlfcn/bug-atexit2-lib.c')
-rw-r--r--dlfcn/bug-atexit2-lib.c14
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);
+}