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

633impl Thing {
634 inner: (self: Thing*, data: u8[]) -> Result<u64, ProbeError> {
635 return Ok(data.len)
636 }
637 outer: (self: Thing*, data: u8[]) -> Result<u64, ProbeError> {
638 if utf8_valid(&data[0], data.len) == false {
639 return Err(BadBytes)
640 }
641 return Thing_inner(self, data)
642 }
643}
644
645main: () -> i32 {
646 t: Thing = { .x = 0 }
647 result := Thing_outer(&t, "hi")
648 match result {
649 Ok(len) -> { return (100 + len) as i32 }
650 Err(error) -> { return 99 }
651 }
652 return 98
653}
654"#,
655 );
656 assert_eq!(exit, Some(102));
657}
658

Callers

nothing calls this directly

Calls 1

run_kernel_hllFunction · 0.70

Tested by

no test coverage detected