home
/
code
/
tiger.ml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test every book test case
[tiger.ml.git]
/
compiler
/
testcases
/
test07.tig
diff --git a/compiler/testcases/test07.tig
b/compiler/testcases/test07.tig
new file mode 100644
(file)
index 0000000..
534c2a2
--- /dev/null
+++ b/
compiler/testcases/test07.tig
@@ -0,0
+1,13
@@
+/* define valid mutually recursive functions */
+let
+
+function do_nothing1(a: int, b: string):int=
+ (do_nothing2(a+1);0)
+
+function do_nothing2(d: int):string =
+ (do_nothing1(d, "str");" ")
+
+in
+ do_nothing1(0, "str2")
+end
+
This page took
0.024683 seconds
and
4
git commands to generate.