aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/for_with.elna
blob: b3727f6048789be0ecca917f5e975209f5623f2e (plain)
1
2
3
4
5
6
7
8
9
10
program()
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.