diff options
author | Gavin Howard <yzena.tech@gmail.com> | 2018-11-03 10:36:37 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-11-17 09:45:53 -0600 |
commit | 1ee1c71e9dbcb534d2bf8aa03a60d0fb9e077f23 (patch) | |
tree | 88cec3f47a71b6b6ae4ffe82299ce7e5c830bbce /tests/files/bc/misc1.txt | |
parent | 833fb23fe8b485d5bb4544c10b9e5577b2c51982 (diff) | |
download | toybox-1ee1c71e9dbcb534d2bf8aa03a60d0fb9e077f23.tar.gz |
Update bc for 1.1 release
Diffstat (limited to 'tests/files/bc/misc1.txt')
-rw-r--r-- | tests/files/bc/misc1.txt | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/tests/files/bc/misc1.txt b/tests/files/bc/misc1.txt new file mode 100644 index 00000000..7e9d9660 --- /dev/null +++ b/tests/files/bc/misc1.txt @@ -0,0 +1,76 @@ +define x(x) { + return(x) +} +define y() { + return; +} +define z() { + return (); +} +scale = 0 +x=2 +x[0]=3 +x +x[0] +scale +ibase +obase +x ( 7 ) +x + x( 8 ) +x - x[0] +321 * x +2 ^ x[0] +x++ +--x +x += 9 +x +length(2381) +sqrt(9) +scale(238.1) +x=2 +x[0]=3 +(x) +(x[0]) +(scale) +(ibase) +(obase) +(x ( 7 )) +(x + x( 8 )) +(x - x[0]) +(321 * x) +(2 ^ x[0]) +(x++) +(--x) +(x += 9) +(length(2381)) +(sqrt(9)) +(scale(238.1)) +(scale = 0) +(x = 10) +(x += 100) +(x -= 10) +(x *= 10) +(x /= 100) +(x ^= 10) +(x = sqrt(x)) +(x[1 - 1]) +x[(1 - 1)] +2 + \ +3 +++ibase +--ibase +++obase +--obase +++last +--last +last +last = 100 +last +. = 150 +. +++scale +--scale +y() +z() +2 + /* +*/3 |