summaryrefslogtreecommitdiff
path: root/test/dlopen/nodelmod2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dlopen/nodelmod2.c')
-rw-r--r--test/dlopen/nodelmod2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/dlopen/nodelmod2.c b/test/dlopen/nodelmod2.c
new file mode 100644
index 0000000..ff2ffc2
--- /dev/null
+++ b/test/dlopen/nodelmod2.c
@@ -0,0 +1,10 @@
+extern int fini_ran;
+
+int var2 = 100;
+
+static void
+__attribute__ ((__destructor__))
+destr (void)
+{
+ fini_ran = 1;
+}