blob: ccd621f73b6c7b43184e8464b65f3bf4c45ff551 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/sh
valgrind -q --track-origins=yes --error-exitcode=1 --malloc-fill=0xcd --free-fill=0xef --num-callers=100 ./toc test.toc || exit 1
if [ "$1" = "c" ]; then
gcc out.c && ./a.out
elif [ "$1" = "pc" ]; then
cat out.c
fi
rm vgcore* 2> /dev/null
|