diff options
author | Mike Stump <mrs@apple.com> | 2010-01-07 22:50:03 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2010-01-07 22:50:03 +0000 |
commit | d2392273581e13bc1f4e44c4e6b19e6f819d82a4 (patch) | |
tree | c6ca4e93891a2b7c58fcf8bac6c15f2c6ddeb4c1 | |
parent | 29b7284c98253aed6e215aaa867c63084c80e944 (diff) |
Add checker for type infos.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92956 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/VtableTest/check-zti | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/VtableTest/check-zti b/utils/VtableTest/check-zti new file mode 100755 index 0000000000..4e92e66a06 --- /dev/null +++ b/utils/VtableTest/check-zti @@ -0,0 +1,20 @@ +#!/bin/sh + +N_STRUCTS=300 + +# Utility routine to "hand" check type infos. + +let i=0; +while [ $i != $N_STRUCTS ]; do + sed -n "/^__ZTI.*s$i:/,/\.[sg][el]/p" test-clang.s | + grep -v '\.[sg][el]' | sed 's/(\([0-9][0-9]*\))/\1/' >test-clang-zti + sed -n "/^__ZTI.*s$i:/,/\.[sg][el]/p" test-gcc.s | + grep -v '\.[sg][el]' | sed 's/(\([0-9][0-9]*\))/\1/' >test-gcc-zti + diff -U3 test-gcc-zti test-clang-zti + if [ $? != 0 ]; then + echo "FAIL: s$i type info" + else + echo "PASS: s$i type info" + fi + let i=i+1 +done |