19 lines · plain
1#!/bin/sh2 3N_STRUCTS=3004 5# Utility routine to "hand" check vtables.6 7let i=1;8while [ $i != $N_STRUCTS ]; do9 sed -n "/^__ZTV.*s$i:/,/\.[sg][el]/p" test-clang.s | grep -v '\.[sg][el]' >test-clang-ztv10 sed -n "/^__ZTV.*s$i:/,/\.[sg][el]/p" test-gcc.s | grep -v '\.[sg][el]' >test-gcc-ztv11 diff -U3 test-gcc-ztv test-clang-ztv12 if [ $? != 0 ]; then13 echo "FAIL: s$i vtable"14 else15 echo "PASS: s$i vtable"16 fi17 let i=i+118done19