projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bc: fix handling of 'return' not in functions, and 'define f()<newline>{...}'
[oweals/busybox.git]
/
testsuite
/
bc.tests
diff --git
a/testsuite/bc.tests
b/testsuite/bc.tests
index 86220ad19d5c6ddb12bf6cffd008079860b30259..093b3950e15f79553b595b141dadf0f256cc69ff 100755
(executable)
--- a/
testsuite/bc.tests
+++ b/
testsuite/bc.tests
@@
-51,6
+51,11
@@
testing "bc define auto" \
"8\n9\n" \
"" "define w() { auto z; return 8; }; w(); 9"
+testing "bc define with body on next line" \
+ "bc" \
+ "8\n9\n" \
+ "" "define w()\n{ auto z; return 8; }\nw()\n9"
+
tar xJf bc_large.tar.xz
for f in bc*.bc; do