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

Function test_exit_code_42

tests/integration/vm_execution.rs:748–758  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

746}
747
748#[test]
749fn hll_negative_integer_inits() {
750 // Negative literals and literal arithmetic adopt the declared i64 width with
751 // no explicit cast.
752 let (_, outcome, _) = run_hll(
753 r#"
754neg_one: () -> i64 {
755 return -1
756}
757main: () -> i32 {
758 a: i64 = -42
759 b: i64 = 0 - 1
760 c: i64 = a * b
761 d: i64 = neg_one()

Callers

nothing calls this directly

Calls 1

assemble_and_runFunction · 0.85

Tested by

no test coverage detected