about summary refs log tree commit diff
path: root/elf/tst-array4.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-array4.c')
-rw-r--r--elf/tst-array4.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/elf/tst-array4.c b/elf/tst-array4.c
new file mode 100644
index 0000000000..ac3d4eb716
--- /dev/null
+++ b/elf/tst-array4.c
@@ -0,0 +1,18 @@
+#include <dlfcn.h>
+
+#define main array1_main
+#include "tst-array1.c"
+#undef main
+
+int
+main (void)
+{
+  void *handle = dlopen ("tst-array2dep.so", RTLD_LAZY);
+
+  array1_main ();
+
+  if (handle != NULL)
+    dlclose (handle);
+
+  return 0;
+}