From f7a951d79bc895eb2171c2570add9f4899794a10 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 19:55:52 +0200 Subject: Adding upstream version 0.15. Signed-off-by: Daniel Baumann --- testsuite/dwz.tests/odr-class.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 testsuite/dwz.tests/odr-class.sh (limited to 'testsuite/dwz.tests/odr-class.sh') diff --git a/testsuite/dwz.tests/odr-class.sh b/testsuite/dwz.tests/odr-class.sh new file mode 100644 index 0000000..872c3ca --- /dev/null +++ b/testsuite/dwz.tests/odr-class.sh @@ -0,0 +1,29 @@ +if ! $execs/dwz-for-test --odr -v 2>/dev/null; then + exit 77 +fi + +cp $execs/odr-class 1 + +verify-dwarf.sh 1 + +aaa=$(readelf -wi 1 | grep -c 'DW_AT_name.*:.*aaa') +[ $aaa -eq 2 ] + +bbb=$(readelf -wi 1 | grep -c 'DW_AT_name.*:.*bbb') +[ $bbb -eq 2 ] + +ccc=$(readelf -wi 1 | grep -c 'DW_AT_name.*:.*ccc') +[ $ccc -eq 2 ] + +$execs/dwz-for-test --odr 1 + +aaa=$(readelf -wi 1 | grep -c 'DW_AT_name.*:.*aaa') +[ $aaa -eq 1 ] + +bbb=$(readelf -wi 1 | grep -c 'DW_AT_name.*:.*bbb') +[ $bbb -eq 1 ] + +ccc=$(readelf -wi 1 | grep -c 'DW_AT_name.*:.*ccc') +[ $ccc -eq 1 ] + +rm -f 1 -- cgit v1.2.3