diff options
Diffstat (limited to 'tests/i/constant-scope/program.cps')
| -rw-r--r-- | tests/i/constant-scope/program.cps | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/i/constant-scope/program.cps b/tests/i/constant-scope/program.cps new file mode 100644 index 0000000..cec8681 --- /dev/null +++ b/tests/i/constant-scope/program.cps @@ -0,0 +1,9 @@ +CONSTANT Limit = 3 +FUNCTION ReadLimit() RETURNS INTEGER + RETURN Limit +ENDFUNCTION +IF TRUE THEN + CONSTANT Limit = 7 + OUTPUT Limit +ENDIF +OUTPUT Limit, ":", ReadLimit() |
