summaryrefslogtreecommitdiff
path: root/test/call1.lm
diff options
context:
space:
mode:
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