aboutsummaryrefslogtreecommitdiff
path: root/tests/sauer/command.cpp
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-09-11 14:15:46 -0700
committeralon@honor <none@none>2010-09-11 14:15:46 -0700
commitac805ebf0af3ad7873dbed0f0f28e5f6d481c464 (patch)
tree29d01717b6c05cfb43749fd6a88610079447dc74 /tests/sauer/command.cpp
parentc91d6e20014b124c32d29d301e39a5782570300e (diff)
Catch a corner case with 0 in varargs
Diffstat (limited to 'tests/sauer/command.cpp')
-rw-r--r--tests/sauer/command.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sauer/command.cpp b/tests/sauer/command.cpp
index 0b0afc68..7c39522f 100644
--- a/tests/sauer/command.cpp
+++ b/tests/sauer/command.cpp
@@ -1409,6 +1409,7 @@ int main()
execute("somevar 9");
execute("temp = (+ 22 $somevar)");
execute("if (> $temp 30) [ temp = (+ $temp 1) ] [ temp = (* $temp 2) ]");
+ execute("if (< $temp 30) [ temp = 0 ] [ temp = (+ $temp 1) ]");
execute("echo [*Temp is] $temp");
printf("%d*\n", getvar("somevar"));
return 0;