diff options
Diffstat (limited to 'check/recurs.p')
-rw-r--r-- | check/recurs.p | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/check/recurs.p b/check/recurs.p new file mode 100644 index 0000000..e85acbc --- /dev/null +++ b/check/recurs.p @@ -0,0 +1,12 @@ +program main ( input, output ); + var a: integer; + function bar (b: integer) : integer; + var test:integer; + begin + test := bar(test); + bar := test + end; +begin + a := bar(1); + a := 1 + 1 +end. |