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