3 # Run a regression test for the demangler.
4 # Usage: regress-demangle TEST-FILE
8 sed -e '/^#/ d' "$1" | (
13 x="`./test-filter $type $mangled`"
14 count=`expr $count + 1`
15 if test "x$x" != "x$demangled"; then
16 failures=`expr $failures + 1`
17 echo "FAIL: $type $mangled"
19 echo " expected: $demangled"
23 if test $failures -eq 0; then
24 echo "All $count tests passed"
26 echo "$failures of $count tests failed"