diff options
author | Adrian Thurston <thurston@complang.org> | 2015-03-29 19:32:12 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-03-29 19:32:12 -0400 |
commit | f6d2805b11de9dc90577cdf5d6e4fc5486f66fbf (patch) | |
tree | 5ac31a7171019e9671e1722b9d10475ca19b4be8 /test | |
parent | 2d8123e782deb1f4d9a3412b37eacc545fb8053e (diff) | |
download | colm-f6d2805b11de9dc90577cdf5d6e4fc5486f66fbf.tar.gz |
additional function call test
Diffstat (limited to 'test')
-rw-r--r-- | test/func4.lm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/func4.lm b/test/func4.lm new file mode 100644 index 00000000..7411f7e3 --- /dev/null +++ b/test/func4.lm @@ -0,0 +1,39 @@ + +#int func2( A1: int ) +#{ +# Int: int +# exit(1) +#} + +#int func1( A1: int ) +#{ +# Int: int +# func2(1) +#} + +def a + I: int + [] +def b + A: a + [] + +void func2( K: int L: int A: ref<a> I: int J: int ) +{ + A.I = 77 + #exit( 0 ) + print "[K] [L] [I] [J] +} + +void func1() +{ + cons B: b[] + B.A = cons a[] + func2( 33 44 B.A 55 66 ) + print "[B.A.I] +} + +func1() +##### EXP ##### +33 44 55 66 +77 |