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

Function array_literal_scalar_width_flexible

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

Source from the content-addressed store, hash-verified

717
718#[test]
719fn range_slice_start_after_end_traps() {
720 // start > end is an invalid range and traps (code 134).
721 assert_exit(
722 r#"
723main: () -> i32 {
724 arr: i32[5] = [10, 20, 30, 40, 50]
725 a: i32 = 3
726 view := arr[a..1]
727 return view[0]
728}
729"#,
730 134,
731 );
732}
733

Callers

nothing calls this directly

Calls 1

assert_exitFunction · 0.85

Tested by

no test coverage detected