1*7330f729Sjoerg#!/bin/sh 2*7330f729Sjoerg 3*7330f729SjoergN_STRUCTS=300 4*7330f729Sjoerg 5*7330f729Sjoerg# Utility routine to "hand" check type infos. 6*7330f729Sjoerg 7*7330f729Sjoerglet i=1; 8*7330f729Sjoergwhile [ $i != $N_STRUCTS ]; do 9*7330f729Sjoerg sed -n "/^__ZTI.*s$i:/,/\.[sg][el]/p" test-clang.s | 10*7330f729Sjoerg grep -v '\.[sg][el]' | sed 's/(\([0-9][0-9]*\))/\1/' >test-clang-zti 11*7330f729Sjoerg sed -n "/^__ZTI.*s$i:/,/\.[sg][el]/p" test-gcc.s | 12*7330f729Sjoerg grep -v '\.[sg][el]' | sed 's/(\([0-9][0-9]*\))/\1/' >test-gcc-zti 13*7330f729Sjoerg diff -U3 test-gcc-zti test-clang-zti 14*7330f729Sjoerg if [ $? != 0 ]; then 15*7330f729Sjoerg echo "FAIL: s$i type info" 16*7330f729Sjoerg else 17*7330f729Sjoerg echo "PASS: s$i type info" 18*7330f729Sjoerg fi 19*7330f729Sjoerg let i=i+1 20*7330f729Sjoergdone 21