aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/slice_cast.elna
blob: d11f80a97a22c4ecf74d0bd220333ad51c198398 (plain)
1
2
3
4
5
6
7
var
  ints: [4]Int32 := [1i32, 2i32, 3i32, 4i32]

program()
begin
  assert(cast(ints[1u to 4u]: []Int8).length = #size(Int32) * ints.length)
end.