aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/compile_time_array_access.elna
blob: 5ce10a010bca4b35db3bdba150f5d2fc6b84c9cd (plain)
1
2
3
4
5
6
7
8
program()
var
  array: const [3]Int := [1, 2, 3]
  i: const Int := array[2]

begin
  assert(i = 2)
end.