MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / contextual_array_literal_zero_fills

Function contextual_array_literal_zero_fills

tests/integration/hll_conformance.rs:699–716  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

697"#,
698 70,
699 );
700}
701
702#[test]
703fn range_slice_end_past_len_traps() {
704 // An end beyond the source length fails the slice bounds check (code 134).
705 assert_exit(
706 r#"
707main: () -> i32 {
708 arr: i32[5] = [10, 20, 30, 40, 50]
709 b: i32 = 10
710 view := arr[1..b]
711 return view[0]
712}
713"#,
714 134,
715 );
716}
717
718#[test]
719fn range_slice_start_after_end_traps() {

Callers

nothing calls this directly

Calls 1

assert_exitFunction · 0.85

Tested by

no test coverage detected