()
| 775 | fn hll_global_scalar_initializer() { |
| 776 | // A non-zero scalar global reads back its declared value. |
| 777 | let (_, outcome, _) = run_hll( |
| 778 | r#" |
| 779 | g: i64 = 42 |
| 780 | main: () -> i32 { |
| 781 | return g as i32 |
| 782 | } |
| 783 | "#, |
| 784 | ); |
| 785 | assert!( |
| 786 | matches!(outcome, StepOutcome::Halted(42)), |
| 787 | "expected Halted(42), got {outcome:?}" |
| 788 | ); |
| 789 | } |
| 790 | |
| 791 | #[test] |
| 792 | fn hll_global_array_initializer() { |
| 793 | // A non-zero array global initializer lands in .data and reads back. |
nothing calls this directly
no test coverage detected