MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / encode_data_section_bytes

Function encode_data_section_bytes

crates/asm-to-binary/src/assembler/mod.rs:428–437  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

compute_layoutFunction · 0.85
encodeFunction · 0.85

Tested by

no test coverage detected