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

Function struct_mixed_i32_i64_fields

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

Source from the content-addressed store, hash-verified

1860 );
1861}
1862
1863/// i64 store/load round-trip for large value 0x8010_0000.
1864#[test]
1865fn mem_i64_store_load_large() {
1866 let (_, outcome, _) = run_hll(
1867 r#"
1868external free: (p: i64*) -> void
1869
1870main: () -> i32 {
1871 p: i64* = new(i64)
1872 @p = 2148532224
1873 v: i64 = @p
1874 free(p)
1875 a: i64 = 1048576
1876 expected: i64 = a * 2049
1877 if v == expected {
1878 return 0
1879 }
1880 return 1
1881}
1882"#,
1883 );
1884 assert!(
1885 matches!(outcome, RunOutcome::Halted(0)),
1886 "i64 store 0x8010_0000 -> load should read same value, got {outcome:?}"
1887 );
1888}
1889
1890/// Store then overwrite: last written value wins.
1891#[test]

Callers

nothing calls this directly

Calls 1

run_hllFunction · 0.70

Tested by

no test coverage detected