blob: 2f90d4c232116df443943b0b57b9406ebcbf6564 [file] [log] [blame] [raw]
#!/bin/sh
[ "$1" = "-h" ] && { echo "$0 <compiler>(=gcc) [<options to csmith>] [<...>]"; exit 255; }
CODER=csmith64
[ -z $CC ] && [ ! -z "$1" ] && CC=$1 && shift || CC=gcc
CFLAGS="-Iruntime -O1 -w"
unlink test.c > /dev/null 2>&1
set -e
while true
do
# $CODER | $CC $CFLAGS -xc - -o /dev/null;
# $CODER > test.c
$CODER "$@" > test.c
$CC $CFLAGS test.c
done