; slice.copy copies len(src) elements into the start of a longer destination. ; expect: run ; result: [9,9,0,0] ; phase: 1 ; spec: docs/spec/07a-air-instructions.md module test.copy_into_prefix air 0 lang 0.1 features [arrays, ownership] fn @main() -> array effects [] entry: %x = local.alloc array %y = local.alloc array %nine = const.u8 9 %a = array.splat array %nine local.store %x, %a local.zero %y %rx = borrow.ref %x %sx = slice.make %rx %my = borrow.mut %y %sy = slice.make %my slice.copy %sy, %sx borrow.end %sy borrow.end %my borrow.end %sx borrow.end %rx %out = local.load %y ret %out