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

Function my_kernel_example_program

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

Source from the content-addressed store, hash-verified

581"#,
582 );
583 assert_eq!(exit, Some(0));
584}
585
586// Regression: returning another function's >16-byte enum result used to take
587// the scalar return path and drop the sret copy (Named alias left unresolved).
588#[test]
589fn hosted_sret_enum_result_forwarding() {
590 let (_, exit) = run_hll(
591 r#"
592memory_allocator := import("memory_allocator")
593
594enum ProbeError {
595 Wrapped(AllocError)
596 BadBytes
597}
598
599struct Thing { x: u64 }
600
601impl Thing {
602 inner: (self: Thing*, data: u8[]) -> Result<u64, ProbeError> {
603 return Ok(data.len)

Callers

nothing calls this directly

Calls 1

run_kernel_hllFunction · 0.70

Tested by

no test coverage detected