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

Function string_literal_creates_global_string

tests/integration/ir_generation.rs:395–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393fn multi_arg_call_passes_all_args() {
394 let source = r#"external add: (a: i32, b: i32) -> i32
395main: () -> i32 {
396 result: i32 = add(10, 32)
397 return result
398}"#;
399 assert!(has_instruction(source, |i| {
400 if let IrInstruction::Call { function, args, .. } = i {
401 function == "add" && args.len() == 2
402 } else {
403 false
404 }
405 }));
406}
407
408// -- Global string constants ---------------------------------------------------
409
410#[test]

Callers

nothing calls this directly

Calls 1

compile_okFunction · 0.70

Tested by

no test coverage detected