()
| 426 | } |
| 427 | |
| 428 | #[test] |
| 429 | fn layout_duplicate_label_is_error() { |
| 430 | let tokens = vec![ |
| 431 | AsmToken::Section(SectionKind::Text), |
| 432 | AsmToken::Label("foo".to_owned()), |
| 433 | nop_token(), |
| 434 | AsmToken::Label("foo".to_owned()), |
| 435 | ]; |
| 436 | assert!(compute_layout(&tokens).is_err()); |
| 437 | } |
| 438 | |
| 439 | // ---- encode::encode (Pass 2) ---- |
| 440 |
nothing calls this directly
no test coverage detected