summaryrefslogtreecommitdiff
path: root/libc/elf/tst-relsort1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/elf/tst-relsort1.c')
-rw-r--r--libc/elf/tst-relsort1.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libc/elf/tst-relsort1.c b/libc/elf/tst-relsort1.c
new file mode 100644
index 000000000..972100c0e
--- /dev/null
+++ b/libc/elf/tst-relsort1.c
@@ -0,0 +1,19 @@
+#include <dlfcn.h>
+#include <stdio.h>
+
+
+static int
+do_test ()
+{
+ const char lib[] = "$ORIGIN/tst-relsort1mod1.so";
+ void *h = dlopen (lib, RTLD_NOW);
+ if (h == NULL)
+ {
+ puts (dlerror ());
+ return 1;
+ }
+ return 0;
+}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"