about summary refs log tree commit diff
path: root/REORG.TODO/dlfcn/bug-atexit3-lib.cc
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/dlfcn/bug-atexit3-lib.cc')
-rw-r--r--REORG.TODO/dlfcn/bug-atexit3-lib.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/REORG.TODO/dlfcn/bug-atexit3-lib.cc b/REORG.TODO/dlfcn/bug-atexit3-lib.cc
new file mode 100644
index 0000000000..ed3334709a
--- /dev/null
+++ b/REORG.TODO/dlfcn/bug-atexit3-lib.cc
@@ -0,0 +1,26 @@
+#include <unistd.h>
+#include <string.h>
+
+#include <support/support.h>
+
+struct statclass
+{
+  statclass()
+  {
+    write_message ("statclass\n");
+  }
+  ~statclass()
+  {
+    write_message ("~statclass\n");
+  }
+};
+
+struct extclass
+{
+  ~extclass()
+  {
+    static statclass var;
+  }
+};
+
+extclass globvar;