// "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