-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes #18
- Loading branch information
Showing
6 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
' Test for statement "CLR" | ||
? "Start" | ||
|
||
n = 0 | ||
f = fre() | ||
|
||
' Dim inside a PROC to call multiple times | ||
proc dima | ||
? "---- DIM "; n; " ----" | ||
? "Before: "; f-fre() | ||
dim a(n) | ||
? "After: "; f-fre() | ||
endproc | ||
|
||
n=10 : exec dima | ||
n=10 : exec dima | ||
|
||
? "---- CLR ----" | ||
clr | ||
|
||
? f, n, adr(a) | ||
|
||
f = fre() | ||
n=100 : exec dima | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Name: Test statement "CLR" | ||
Test: run | ||
Output: | ||
Start | ||
---- DIM 10 ---- | ||
Before: 0 | ||
After: 22 | ||
---- DIM 10 ---- | ||
Before: 22 | ||
After: 44 | ||
---- CLR ---- | ||
0 0 0 | ||
---- DIM 100 ---- | ||
Before: 0 | ||
After: 202 |