* lib/compile: Clear the `eat' variable earlier.
* tests/compile3.test: Prevent regressions.
Signed-off-by: Peter Rosin <peda@lysator.liu.se>
+2010-11-15 Peter Rosin <peda@lysator.liu.se>
+
+ compile: clear the `eat' variable earlier.
+ * lib/compile: Clear the `eat' variable earlier.
+ * tests/compile3.test: Prevent regressions.
+
2010-10-07 Peter Rosin <peda@lysator.liu.se>
depcomp: add new one-pass depmode for MSVC 7 and later.
exit 1
}
+eat=
+
case $1 in
'')
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
ofile=
cfile=
-eat=
for arg
do
opts=`./compile ./cl -c foo.cc -o foo.o -Ibaz`
test x"$opts" = x"-c -Tpfoo.cc -Fofoo.o -Ibaz"
+# Check if compile clears the "eat" variable properly.
+opts=`eat=1 ./compile ./cl -c foo.c -o foo.obj -Ibaz`
+test x"$opts" = x"-c foo.c -Fofoo.obj -Ibaz"
+
: