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

Function omit_frame_pointer_preserves_behavior

tests/integration/vm_execution.rs:342–359  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340 "expected Halted(42), got {:?}; uart: {}",
341 run.outcome,
342 run.uart_output
343 );
344}
345
346// An exported generic aggregate and a generic function over it specialize in the
347// importer at a type argument the provider never names.
348#[test]
349fn imported_generic_struct_specializes_in_the_importer() {
350 let mut pipeline = CompilationPipeline::new();
351 pipeline.set_write_artifacts(false);
352 pipeline.set_module_resolver(Some(Box::new(|name: &str| {
353 (name == "boxlib").then(|| {
354 "export struct Box<T> { value: T }
355 export unwrap: <T>(holder: Box<T>*) -> T { return holder.value }
356"
357 .to_owned()
358 })
359 })));
360
361 let primary = r#"
362boxlib := import("boxlib")

Callers

nothing calls this directly

Calls 1

run_hll_omit_fpFunction · 0.85

Tested by

no test coverage detected