This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,13 @@
|
||||
// "An ARRAY keeps its dimensions through a loop" was assumed for every ARRAY
|
||||
// the body changes, while A <- B gave A the length of B. The language now holds
|
||||
// an ARRAY to its declared length: the store of another length stops the run.
|
||||
// (When both lengths are plain numbers the checker refuses the store; B's
|
||||
// length here is known only to the run.)
|
||||
// RUN-STOPS: value@11
|
||||
DECLARE A : ARRAY[3] OF INTEGER
|
||||
DECLARE N : INTEGER <- 5
|
||||
DECLARE B : ARRAY[N] OF INTEGER
|
||||
FOR I <- 0 TO 1
|
||||
A <- B
|
||||
NEXT I
|
||||
ASSERT LENGTH(A) == 3
|
||||
Reference in new issue
Block a user