()
| 505 | #[test] |
| 506 | fn pointer_store_emits_store_instruction() { |
| 507 | let source = r#"main: () -> i32 { |
| 508 | ptr: i32* = new(i32) |
| 509 | @ptr = 99 |
| 510 | val: i32 = @ptr |
| 511 | free(ptr) |
| 512 | return val |
| 513 | }"#; |
| 514 | assert!(has_instruction(source, |i| matches!( |
| 515 | i, |
nothing calls this directly
no outgoing calls
no test coverage detected