summaryrefslogtreecommitdiff
path: root/test/call1.lm
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2014-02-01 19:49:33 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2014-02-01 19:49:33 +0000
commit404ae0f284a3b2d41fcdb53826550e4dfec5c65c (patch)
treecc446af26234e4465b8cc168b720ec44816ff5ab /test/call1.lm
downloadcolm-tarball-404ae0f284a3b2d41fcdb53826550e4dfec5c65c.tar.gz
Diffstat (limited to 'test/call1.lm')
-rw-r--r--test/call1.lm17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/call1.lm b/test/call1.lm
new file mode 100644
index 0000000..82f6c76
--- /dev/null
+++ b/test/call1.lm
@@ -0,0 +1,17 @@
+##### LM #####
+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()
+##### EXP #####
+8