diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-07 17:47:31 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-07 23:17:37 +0100 |
| commit | 50d6472d56091d0fece3fb87837a3931215603e4 (patch) | |
| tree | 99459427dab6085a41b687fb0919d442215a8a31 /progs/tests/constant_function_closure.sy | |
| parent | 3974ce7c4f0623cef3fcf0abf95d8be6a54d3b44 (diff) | |
| download | sylt-50d6472d56091d0fece3fb87837a3931215603e4.tar.gz | |
move the tests
Diffstat (limited to 'progs/tests/constant_function_closure.sy')
| -rw-r--r-- | progs/tests/constant_function_closure.sy | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/progs/tests/constant_function_closure.sy b/progs/tests/constant_function_closure.sy new file mode 100644 index 0000000..6c7f0d7 --- /dev/null +++ b/progs/tests/constant_function_closure.sy @@ -0,0 +1,13 @@ +q : int = 1 + +f :: fn -> int { + q += 1 + ret q +} + +start :: fn { + f() <=> 2 + f() <=> 3 + f() <=> 4 + f() <=> 5 +} |
