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

Function kernel_boot_kshutdown_nonzero_exit

tests/integration/platform_stdlib.rs:526–538  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

524}
525
526#[test]
527fn hosted_vec_grows_and_preserves_elements() {
528 let (_, exit) = run_hll(
529 r#"
530alloc := import("alloc")
531vec := import("vec")
532owned := import("owned_string")
533arena := import("arena")
534pool := import("pool")
535
536main: () -> i32 {
537 v: vec.Vec<i64> = { .ptr = null, .len = 0, .capacity = 0 }
538 vec.Vec_init<i64>(&v)
539 if v.len != 0 or v.capacity != 0 { return 1 }
540
541 i: i64 = 0

Callers

nothing calls this directly

Calls 1

run_kernel_hllFunction · 0.70

Tested by

no test coverage detected