summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-09-02 10:19:33 -0400
committerAdrian Thurston <thurston@complang.org>2012-09-02 10:19:33 -0400
commiteb790bdcc2b8f98aa5887333e8a96695cbe44569 (patch)
tree698ecee14727ec0b4359c555f5874780f8d1154e
parent9785aa5fd1b68277908019a7c60ab551481c8074 (diff)
downloadcolm-eb790bdcc2b8f98aa5887333e8a96695cbe44569.tar.gz
test case for nested call points. valid when the stack block size drops to 1
-rw-r--r--test/call1.exp1
-rw-r--r--test/call1.lm14
2 files changed, 15 insertions, 0 deletions
diff --git a/test/call1.exp b/test/call1.exp
new file mode 100644
index 00000000..45a4fb75
--- /dev/null
+++ b/test/call1.exp
@@ -0,0 +1 @@
+8
diff --git a/test/call1.lm b/test/call1.lm
new file mode 100644
index 00000000..f0d1d2e2
--- /dev/null
+++ b/test/call1.lm
@@ -0,0 +1,14 @@
+int f1( i: int j: int )
+{
+ return i + j
+}
+
+int main()
+{
+ print( f1(
+ f1( f1( 1 1 ) f1( 1 1 ) )
+ f1( f1( 1 1 ) f1( 1 1 ) )
+ ) '\n' )
+}
+
+main()