summaryrefslogtreecommitdiff
path: root/regress/usr.bin/bc/t11.in
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2003-10-22 12:26:44 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2003-10-22 12:26:44 +0000
commitc48c96e7134a92d494a87fa1a04d3e48aa87f584 (patch)
tree25061265ac3cfba7f0cb287f144af82a6d5cde0f /regress/usr.bin/bc/t11.in
parent21823a166aabdaf10a6d5ba635a68374b31914c1 (diff)
Regressions for if ... else.
Diffstat (limited to 'regress/usr.bin/bc/t11.in')
-rw-r--r--regress/usr.bin/bc/t11.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/regress/usr.bin/bc/t11.in b/regress/usr.bin/bc/t11.in
new file mode 100644
index 00000000000..afd46f4ab37
--- /dev/null
+++ b/regress/usr.bin/bc/t11.in
@@ -0,0 +1,12 @@
+for (i = 0; i < 5; i++) {
+ if (i > 0) {
+ if (i < 3) {
+ "i > 0 && i < 3"
+ } else {
+ "i > 0 && i >= 3"
+ }
+ } else "i == 0"
+ " "
+ if (i == 0) "0 " else if (i == 1) "1 " else "* "
+ i
+}