Added a smoke test for local scopes

This commit is contained in:
Dmitry Boulytchev 2019-09-19 16:57:41 +03:00
parent 5527013a7f
commit a3b12425fd
4 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1 @@
> > > 8

8
regression/test056.expr Normal file
View file

@ -0,0 +1,8 @@
fun test (a, b, c) {
local x = a + b, y = b + c;
{local e = x + y;
return e
}
}
write (test (read (), read (), read ()))

3
regression/test056.input Normal file
View file

@ -0,0 +1,3 @@
1
2
3