X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=compiler%2Ftestcases%2Ftest07.tig;fp=compiler%2Ftestcases%2Ftest07.tig;h=534c2a2c24a619905a66fe8fd3a4a6941a6a0bf9;hb=38ffcb1fc99ecb7a48097cbcf97b9a3062c8bfa0;hp=0000000000000000000000000000000000000000;hpb=4f2aaee3ef5f70f7769931032fd50af0403c51ae;p=tiger.ml.git diff --git a/compiler/testcases/test07.tig b/compiler/testcases/test07.tig new file mode 100644 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 +