summaryrefslogtreecommitdiffstats
path: root/testsuite/dwz.tests/odr-def-decl.sh
blob: 8905e52cb6abe9483603bdc2bc8d74d71482581b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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