Skip to content

Commit 4404cad

Browse files
committed
Add missing test for demangle for OSX
1 parent af38dc6 commit 4404cad

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/v0.rs

+17
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,7 @@ mod tests {
12791279
#[test]
12801280
fn demangle_crate_with_leading_digit() {
12811281
t_nohash!("_RNvC6_123foo3bar", "123foo::bar");
1282+
t_nohash!("__RNvC6_123foo3bar", "123foo::bar");
12821283
}
12831284

12841285
#[test]
@@ -1287,6 +1288,10 @@ mod tests {
12871288
"_RNqCs4fqI2P2rA04_11utf8_identsu30____7hkackfecea1cbdathfdh9hlq6y",
12881289
"utf8_idents::საჭმელად_გემრიელი_სადილი"
12891290
);
1291+
t_nohash!(
1292+
"__RNqCs4fqI2P2rA04_11utf8_identsu30____7hkackfecea1cbdathfdh9hlq6y",
1293+
"utf8_idents::საჭმელად_გემრიელი_სადილი"
1294+
);
12901295
}
12911296

12921297
#[test]
@@ -1299,6 +1304,14 @@ mod tests {
12991304
"_RNCINkXs25_NgCsbmNqQUJIY6D_4core5sliceINyB9_4IterhENuNgNoBb_4iter8iterator8Iterator9rpositionNCNgNpB9_6memchr7memrchrs_0E0Bb_",
13001305
"<core::slice::Iter<u8> as core::iter::iterator::Iterator>::rposition::<core::slice::memchr::memrchr::{closure#1}>::{closure#0}"
13011306
);
1307+
t_nohash!(
1308+
"__RNCNCNgCs6DXkGYLi8lr_2cc5spawn00B5_",
1309+
"cc::spawn::{closure#0}::{closure#0}"
1310+
);
1311+
t_nohash!(
1312+
"__RNCINkXs25_NgCsbmNqQUJIY6D_4core5sliceINyB9_4IterhENuNgNoBb_4iter8iterator8Iterator9rpositionNCNgNpB9_6memchr7memrchrs_0E0Bb_",
1313+
"<core::slice::Iter<u8> as core::iter::iterator::Iterator>::rposition::<core::slice::memchr::memrchr::{closure#1}>::{closure#0}"
1314+
);
13021315
}
13031316

13041317
#[test]
@@ -1307,6 +1320,10 @@ mod tests {
13071320
"_RINbNbCskIICzLVDPPb_5alloc5alloc8box_freeDINbNiB4_5boxed5FnBoxuEp6OutputuEL_ECs1iopQbuBiw2_3std",
13081321
"alloc::alloc::box_free::<dyn alloc::boxed::FnBox<(), Output = ()>>"
13091322
);
1323+
t_nohash!(
1324+
"__RINbNbCskIICzLVDPPb_5alloc5alloc8box_freeDINbNiB4_5boxed5FnBoxuEp6OutputuEL_ECs1iopQbuBiw2_3std",
1325+
"alloc::alloc::box_free::<dyn alloc::boxed::FnBox<(), Output = ()>>"
1326+
);
13101327
}
13111328

13121329
#[test]

0 commit comments

Comments
 (0)