()
| 850 | let (_, outcome, uart) = run_hll( |
| 851 | r#" |
| 852 | console := import("console") |
| 853 | |
| 854 | emit: (c: i32) -> i32 { |
| 855 | console.putchar(c) |
| 856 | return 0 |
| 857 | } |
| 858 | main: () -> i32 { |
| 859 | emit(65) |
| 860 | emit(66) |
| 861 | return 0 |
| 862 | } |
| 863 | "#, |
| 864 | ); |
| 865 | assert_eq!(uart, "AB", "expected UART='AB', got {uart:?}"); |
| 866 | assert!( |
| 867 | matches!(outcome, StepOutcome::Halted(0)), |
| 868 | "expected Halted(0), got {outcome:?}" |
nothing calls this directly
no test coverage detected