From: Mike Stump Date: Thu, 7 Jan 2010 22:28:10 +0000 (+0000) Subject: Add checked for VTTs. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5ed0f64fae177034a53c58d9158594e7464cf7b;p=clang Add checked for VTTs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92954 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/VtableTest/check-ztt b/utils/VtableTest/check-ztt new file mode 100755 index 0000000000..974bcd8346 --- /dev/null +++ b/utils/VtableTest/check-ztt @@ -0,0 +1,20 @@ +#!/bin/sh + +N_STRUCTS=300 + +# Utility routine to "hand" check VTTs. + +let i=0; +while [ $i != $N_STRUCTS ]; do + sed -n "/^__ZTT.*s$i:/,/\.[sg][el]/p" test-clang.s | + grep -v '\.[sg][el]' | sed 's/(\([0-9][0-9]*\))/\1/' >test-clang-ztt + sed -n "/^__ZTT.*s$i:/,/\.[sg][el]/p" test-gcc.s | + grep -v '\.[sg][el]' | sed 's/(\([0-9][0-9]*\))/\1/' >test-gcc-ztt + diff -U3 test-gcc-ztt test-clang-ztt + if [ $? != 0 ]; then + echo "FAIL: s$i VTT" + else + echo "PASS: s$i VTT" + fi + let i=i+1 +done