brintos

brintos / llvm-project-archived public Read only

0
0
Text · 520 B · bf5b045 Raw
21 lines · plain
1#!/bin/sh2 3N_STRUCTS=3004 5# Utility routine to "hand" check type infos.6 7let i=1;8while [ $i != $N_STRUCTS ]; do9  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-zti11  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-zti13  diff -U3 test-gcc-zti test-clang-zti14  if [ $? != 0 ]; then15     echo "FAIL: s$i type info"16  else17     echo "PASS: s$i type info"18  fi19  let i=i+120done21