add one small test

This commit is contained in:
Quentin Carbonneaux 2015-10-12 14:32:48 -04:00
parent 31b19a21b8
commit fbee480f2e
2 changed files with 39 additions and 0 deletions

12
minic/mcc Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
SRC=$1
if [ -z "$SRC" ]; then
echo "usage: ./mcc file.c" 1>&2
exit 1
fi
rm -f /tmp/minic.s
./minic < $SRC | ../lisc/lisc - > /tmp/minic.s
[ -f /tmp/minic.s ] && cc /tmp/minic.s