1*67e74705SXin Li#!/bin/sh 2*67e74705SXin Li 3*67e74705SXin LiN_STRUCTS=300 4*67e74705SXin Li 5*67e74705SXin Li# Utility routine to "hand" check VTTs. 6*67e74705SXin Li 7*67e74705SXin Lilet i=1; 8*67e74705SXin Liwhile [ $i != $N_STRUCTS ]; do 9*67e74705SXin Li sed -n "/^__ZTT.*s$i:/,/\.[sgm][elo]/p" test-clang.s | 10*67e74705SXin Li grep -v '\.[sgm][elo]' | sed -e 's/[()]//g' -e '/^$/d' >test-clang-ztt 11*67e74705SXin Li sed -n "/^__ZTT.*s$i:/,/\.[sgm][elo]/p" test-gcc.s | 12*67e74705SXin Li grep -v '\.[sgm][elo]' | sed -e 's/[()]//g' -e 's/ + /+/' >test-gcc-ztt 13*67e74705SXin Li diff -U3 test-gcc-ztt test-clang-ztt 14*67e74705SXin Li if [ $? != 0 ]; then 15*67e74705SXin Li echo "FAIL: s$i VTT" 16*67e74705SXin Li else 17*67e74705SXin Li echo "PASS: s$i VTT" 18*67e74705SXin Li fi 19*67e74705SXin Li let i=i+1 20*67e74705SXin Lidone 21