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

524alloc := import("alloc")
525vec := import("vec")
526owned := import("owned_string")
527arena := import("arena")
528pool := import("pool")
529
530main: () -> i32 {
531 v: vec.Vec<i64> = { .ptr = null, .len = 0, .capacity = 0 }
532 vec.Vec_init<i64>(&v)
533 if v.len != 0 or v.capacity != 0 { return 1 }
534
535 i: i64 = 0
536 while i < 100 {
537 pushed := vec.Vec_push<i64>(&v, i * 3)
538 match pushed {
539 Ok(len) -> {}
540 Err(error) -> { return 2 }
541 }

Callers

nothing calls this directly

Calls 1

run_kernel_hllFunction · 0.70

Tested by

no test coverage detected