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

Function sample_source

tests/integration/linker.rs:5–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3use virtual_machine::bus::ELF_LOAD_BASE;
4
5fn sample_source() -> &'static str {
6 r#"
7helper: (n: i32) -> i32 {
8 i: i32 = n
9 while i > 0 {
10 i = i - 1
11 }
12 return i
13}
14
15export main: () -> i32 {
16 return helper(3)
17}
18"#
19}
20
21fn compile_object(source: &str) -> AssembledOutput {
22 let mut pipeline = CompilationPipeline::new();

Callers 1

compile_sampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected