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

Function directive_parse_globl

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

Source from the content-addressed store, hash-verified

108 }
109
110 #[test]
111 fn directive_parse_globl() {
112 assert_eq!(
113 Directive::parse(".globl main"),
114 Some(Directive::Globl("main".to_owned()))
115 );
116 assert_eq!(
117 Directive::parse(".global _start"),
118 Some(Directive::Globl("_start".to_owned()))
119 );
120 }
121
122 #[test]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected