()
| 393 | fn multi_arg_call_passes_all_args() { |
| 394 | let source = r#"external add: (a: i32, b: i32) -> i32 |
| 395 | main: () -> 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] |
nothing calls this directly
no test coverage detected