summaryrefslogtreecommitdiffstats
path: root/testsuite/dwz.tests/devel-ignore-locus.sh
blob: a8b2dcd0a9ed60f2d4124bffd331abcfa2abf76d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cp $execs/two-typedef 1

cnt=$(readelf -wi 1 \
	    | grep 'DW_AT_name.*: aaa' \
	    | wc -l)

[ $cnt -eq 2 ]

$execs/dwz-for-test 1 2>/dev/null

cnt=$(readelf -wi 1 \
	    | grep 'DW_AT_name.*: aaa' \
	    | wc -l)

[ $cnt -eq 2 ]

cp $execs/two-typedef 1

$execs/dwz-for-test --devel-ignore-locus --devel-ignore-size 1

cnt=$(readelf -wi 1 \
	    | grep 'DW_AT_name.*: aaa' \
	    | wc -l)

[ $cnt -eq 1 ]

rm -f 1