diff --git a/testdupsym/compile.sh b/testdupsym/compile.sh
new file mode 100644
index 0000000000000000000000000000000000000000..bed96149bc81f98e0e44307f0c737162f69c854c
--- /dev/null
+++ b/testdupsym/compile.sh
@@ -0,0 +1,4 @@
+gcc -shared -o libl1.so lib1.c 
+gcc -shared -o libl2.so lib2.c
+gcc -o main main.c -L. -ll1 -ll2
+
diff --git a/testdupsym/lib1.c b/testdupsym/lib1.c
new file mode 100644
index 0000000000000000000000000000000000000000..b70867fb2b6f6d154c632086f195572deb071740
--- /dev/null
+++ b/testdupsym/lib1.c
@@ -0,0 +1,5 @@
+int testfun(int x)
+{
+    return x+1;
+}
+
diff --git a/testdupsym/lib2.c b/testdupsym/lib2.c
new file mode 100644
index 0000000000000000000000000000000000000000..00ca0e66a290defa1c204d7f1fb00218745a57ab
--- /dev/null
+++ b/testdupsym/lib2.c
@@ -0,0 +1,5 @@
+int testfun(int x)
+{
+    return x+2;
+}
+
diff --git a/testdupsym/main.c b/testdupsym/main.c
new file mode 100644
index 0000000000000000000000000000000000000000..1757ac7901e86a6da800ccef285ae43c125e5275
--- /dev/null
+++ b/testdupsym/main.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+
+int testfun(int);
+
+int main(void)
+{
+    printf("%d\n", testfun(42));
+    return 0;
+}
+