()
| 72 | result.unwrap_err(), |
| 73 | CompilationError::DiagnosticErrors(_) |
| 74 | )); |
| 75 | } |
| 76 | |
| 77 | #[test] |
| 78 | fn rejects_invalid_pointer_arithmetic() { |
| 79 | assert_semantic_error( |
| 80 | r#"main: () -> i32* { |
| 81 | left: i32* = new(i32) |
| 82 | right: i32* = new(i32) |
nothing calls this directly
no test coverage detected