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

Function kernel_boot_kmalloc_works

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

Source from the content-addressed store, hash-verified

633 return Err(BadBytes)
634 }
635 return Thing_inner(self, data)
636 }
637}
638
639main: () -> i32 {
640 t: Thing = { .x = 0 }
641 result := Thing_outer(&t, "hi")
642 match result {
643 Ok(len) -> { return (100 + len) as i32 }
644 Err(error) -> { return 99 }
645 }
646 return 98
647}
648"#,
649 );
650 assert_eq!(exit, Some(102));
651}
652
653#[test]
654fn hosted_owned_string_validates_utf8() {
655 let (_, exit) = run_hll(
656 r#"
657alloc := import("alloc")
658vec := import("vec")

Callers

nothing calls this directly

Calls 1

run_kernel_hllFunction · 0.70

Tested by

no test coverage detected