aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/for_with.elna
blob: 22ccb13a3799c921e04e8981d05e0dc2e564a367 (plain)
1
2
3
4
5
6
7
8
9
var
  actual: [3]Word := [0u, 0u, 0u]

begin
  for element of [1u, 2u, 3u] with i do
    actual[i] := i * element^
  end;
  assert(actual = [1u, 4u, 9u])
end.