summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-arith/arith-ternary3.right
diff options
context:
space:
mode:
authorDenys Vlasenko2023-06-16 19:43:53 +0200
committerDenys Vlasenko2023-06-16 19:51:01 +0200
commite1279858394a6079be6816cbedaa3f10e74057cc (patch)
tree7a7a032ea71978437c8888c9f508db1d4fdf4fe3 /shell/ash_test/ash-arith/arith-ternary3.right
parentf8263528cd44ac5dc95778556c6fd3feea14742e (diff)
downloadbusybox-e1279858394a6079be6816cbedaa3f10e74057cc.zip
busybox-e1279858394a6079be6816cbedaa3f10e74057cc.tar.gz
shell/math: fix ?: to not evaluate not-taken branches
This fixes ash-arith-arith-ternary1/2.tests function old new delta evaluate_string 1271 1432 +161 arith_apply 968 1000 +32 arith 22 36 +14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 207/0) Total: 207 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-arith/arith-ternary3.right')
-rw-r--r--shell/ash_test/ash-arith/arith-ternary3.right1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ash_test/ash-arith/arith-ternary3.right b/shell/ash_test/ash-arith/arith-ternary3.right
new file mode 100644
index 0000000..6644d86
--- /dev/null
+++ b/shell/ash_test/ash-arith/arith-ternary3.right
@@ -0,0 +1 @@
+42:42