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-def-decl.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 testsuite/dwz.tests/odr-def-decl.sh (limited to 'testsuite/dwz.tests/odr-def-decl.sh') diff --git a/testsuite/dwz.tests/odr-def-decl.sh b/testsuite/dwz.tests/odr-def-decl.sh new file mode 100644 index 0000000..8905e52 --- /dev/null +++ b/testsuite/dwz.tests/odr-def-decl.sh @@ -0,0 +1,19 @@ +if ! $execs/dwz-for-test --odr -v 2>/dev/null; then + exit 77 +fi + +cp $execs/def-decl 1 + +verify-dwarf.sh 1 + +cnt=$(readelf -wi 1 | grep -c "DW_AT_name.*:.*ao_ref" || true) +[ $cnt -eq 5 ] + +$execs/dwz-for-test --odr 1 --devel-ignore-size + +verify-dwarf.sh 1 + +cnt=$(readelf -wi 1 | grep -c "DW_AT_name.*:.*ao_ref" || true) +[ $cnt -eq 2 ] + +rm -f 1 -- cgit v1.2.3