Skip to content

Commit c771b2a

Browse files
committed
section_mangler: Add test for parsing qualified name in section name
1 parent 61eb9b5 commit c771b2a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

compiler/section_mangler/src/parser.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,11 @@ mod tests {
228228
fn parse_function_invalid_no_arguments() {
229229
let _ = SectionMangler::from("$RUSTY$fn-no_arguments:u16u8");
230230
}
231+
232+
#[test]
233+
fn parse_qualified_var_name() {
234+
let mangled = SectionMangler::from("$RUSTY$var-Color.red:e4i32");
235+
236+
assert_eq!(mangled.name(), "Color.red");
237+
}
231238
}

0 commit comments

Comments
 (0)