()
| 717 | |
| 718 | #[test] |
| 719 | fn range_slice_start_after_end_traps() { |
| 720 | // start > end is an invalid range and traps (code 134). |
| 721 | assert_exit( |
| 722 | r#" |
| 723 | main: () -> 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 |
nothing calls this directly
no test coverage detected