summaryrefslogtreecommitdiffstats
path: root/testsuite/dwz.tests/pr24341.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/dwz.tests/pr24341.sh')
-rw-r--r--testsuite/dwz.tests/pr24341.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/dwz.tests/pr24341.sh b/testsuite/dwz.tests/pr24341.sh
new file mode 100644
index 0000000..4f044f6
--- /dev/null
+++ b/testsuite/dwz.tests/pr24341.sh
@@ -0,0 +1,17 @@
+cp $execs/min 1
+cp 1 2
+
+dwz -m 3 1 2
+
+cnt=$(readelf -S 3 | grep "\.debug_info" | wc -l)
+if [ $cnt -ne 0 ]; then
+ exit 77
+fi
+
+smaller-than.sh 1 $execs/min
+smaller-than.sh 2 $execs/min
+
+[ "$(gnu-debugaltlink-name.sh 1)" = "3" ]
+[ "$(gnu-debugaltlink-name.sh 2)" = "3" ]
+
+rm -f 1 2 3