quakeforge/tools/qfcc/test/build-compile-pass-run
Bill Currie e974e9d758 [qfcc] Add some failing typedef redef tests
typeredef1 parses properly but fails due to it erroneously complaining
that foo is redeclared as a different kind of object (it's the same
kind).

typeredef2 is the real problem in that it's a syntax error when it
should not be. This has proven to be a show-stopper for development on
my laptop as it has very recent vulkan headers which have such a
duplicate typedef.
2023-02-14 12:45:04 +09:00

15 lines
145 B
Bash
Executable file

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