5 # Utility routine to "hand" check type infos.
8 while [ $i != $N_STRUCTS ]; do
9 sed -n "/^__ZTI.*s$i:/,/\.[sg][el]/p" test-clang.s |
10 grep -v '\.[sg][el]' |
sed 's/(\([0-9][0-9]*\))/\1/' >test-clang-zti
11 sed -n "/^__ZTI.*s$i:/,/\.[sg][el]/p" test-gcc.s |
12 grep -v '\.[sg][el]' |
sed 's/(\([0-9][0-9]*\))/\1/' >test-gcc-zti
13 diff -U3 test-gcc-zti test-clang-zti
15 echo "FAIL: s$i type info"
17 echo "PASS: s$i type info"