aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Howard <yzena.tech@gmail.com>2019-11-30 19:16:12 -0700
committerGavin Howard <yzena.tech@gmail.com>2019-11-30 19:16:12 -0700
commite5bd3d482bcb1a123b28bb68ff4c0291f5f58dab (patch)
tree0b4c257372be2f87ed3a17e5ea8f27a552476dbd
parentd93973cfb598cd264b5a9b3e9a30b6550077172c (diff)
downloadbc-e5bd3d482bcb1a123b28bb68ff4c0291f5f58dab.tar.gz
Add a tail call test script for dc
-rw-r--r--tests/dc/scripts/quit.dc2
-rw-r--r--tests/dc/scripts/quit.txt99
2 files changed, 101 insertions, 0 deletions
diff --git a/tests/dc/scripts/quit.dc b/tests/dc/scripts/quit.dc
new file mode 100644
index 00000000..81e6289a
--- /dev/null
+++ b/tests/dc/scripts/quit.dc
@@ -0,0 +1,2 @@
+1se [li p 1+si le li !=lem]sl [lk p 1+sk le lk !=o]so [0sk lox leQ 0sk lox le 3*1+Q 0sk lox]sm [0si llx le 1+se 10 le !=n]dsnx
+1si [li p 1+si 10 li !=set]ss [1000Q]st lsx
diff --git a/tests/dc/scripts/quit.txt b/tests/dc/scripts/quit.txt
new file mode 100644
index 00000000..a2b5201d
--- /dev/null
+++ b/tests/dc/scripts/quit.txt
@@ -0,0 +1,99 @@
+0
+0
+0
+1
+0
+1
+0
+1
+2
+0
+1
+2
+0
+1
+2
+3
+0
+1
+2
+3
+0
+1
+2
+3
+4
+0
+1
+2
+3
+4
+0
+1
+2
+3
+4
+5
+0
+1
+2
+3
+4
+5
+0
+1
+2
+3
+4
+5
+6
+0
+1
+2
+3
+4
+5
+6
+0
+1
+2
+3
+4
+5
+6
+7
+0
+1
+2
+3
+4
+5
+6
+7
+0
+1
+2
+3
+4
+5
+6
+7
+8
+0
+1
+2
+3
+4
+5
+6
+7
+8
+1
+2
+3
+4
+5
+6
+7
+8
+9