()
| 3299 | |
| 3300 | #[test] |
| 3301 | fn duplicate_gv() { |
| 3302 | let ParseError { |
| 3303 | location, |
| 3304 | message, |
| 3305 | is_warning, |
| 3306 | } = Parser::new( |
| 3307 | "function %blocks() system_v { |
| 3308 | gv0 = vmctx |
| 3309 | gv0 = vmctx", |
| 3310 | ) |
| 3311 | .parse_function() |
| 3312 | .unwrap_err(); |
| 3313 | |
| 3314 | assert_eq!(location.line_number, 3); |
| 3315 | assert_eq!(message, "duplicate entity: gv0"); |
| 3316 | assert!(!is_warning); |
| 3317 | } |
| 3318 | |
| 3319 | #[test] |
| 3320 | fn duplicate_sig() { |
nothing calls this directly
no test coverage detected