quakeforge/tools/qfcc/test/build-compile-fail-run
Bill Currie 0de9b02726 [qfcc] Catch declarations of arrays of class
They're still static instances.
2020-03-30 19:02:41 +09:00

15 lines
165 B
Bash
Executable file

#! /bin/sh
script=$1
shift
cat > $script <<EOF
#! /bin/sh
# compile must fail with a normal error
$@
if test \$? != 1; then
exit 1
fi
exit 0
EOF
chmod +x $script