Skip to content

Commit

Permalink
Add Tests From rizinorg#51 and rizinorg#50
Browse files Browse the repository at this point in the history
  • Loading branch information
brightprogrammer committed Dec 4, 2024
1 parent cbe7ba5 commit da94a53
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions test/test_cxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -31152,6 +31152,35 @@ mu_demangle_tests(gpl,
mu_demangle_test("_ZZN3Foo3fooEiENH4Foo24foo2EOKS0_", "Foo::foo(int)::Foo2::foo2(this Foo2 const&&)"),
mu_demangle_test("_ZZNH3Foo3fooES_iENK4Foo24foo2Ev", "Foo::foo(this Foo, int)::Foo2::foo2() const"),
mu_demangle_test("_ZNH3FooclERKS_", "Foo::operator()(this Foo const&)"),

// from : https://github.com/rizinorg/rz-libdemangle/issues/51
mu_demangle_test("__ZTSZ13xml_ParseFileE3$_0", "typeinfo name for xml_ParseFile::$_0"),
mu_demangle_test("__ZTSZ14xml_ModifyFileE3$_1", "typeinfo name for xml_ModifyFile::$_1"),
mu_demangle_test("__ZTSZN8csconfig12LoadFromFileERNS_6csconfEE3$_0", "typeinfo name for csconfig::LoadFromFile(csconfig::csconf&)::$_0"),
mu_demangle_test("__ZTSZN8csconfig12ModifyConfigERKNS_6csconfEE3$_1", "typeinfo name for csconfig::ModifyConfig(csconfig::csconf const&)::$_1"),
mu_demangle_test("__ZTSZN6common7strutil14TokenizeAccessERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEcE3$_0", "typeinfo name for common::strutil::TokenizeAccess(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, char)::$_0"),
mu_demangle_test("__ZTSZL10vpn_statusvE3$_0", "typeinfo name for vpn_status()::$_0"),
mu_demangle_test("__ZTSZL11ztna_statusiE3$_1", "typeinfo name for ztna_status(int)::$_1"),
mu_demangle_test("__ZTSZN8sbconfig12LoadFromFileERNS_6sbconfEE3$_0", "typeinfo name for sbconfig::LoadFromFile(sbconfig::sbconf&)::$_0"),
mu_demangle_test("__ZTSZN8sbconfig12ModifyConfigERKNS_6sbconfEE3$_1", "typeinfo name for sbconfig::ModifyConfig(sbconfig::sbconf const&)::$_1"),
mu_demangle_test("__ZTIZ13xml_ParseFileE3$_0", "typeinfo for xml_ParseFile::$_0"),
mu_demangle_test("__ZTIZ14xml_ModifyFileE3$_1", "typeinfo for xml_ModifyFile::$_1"),
mu_demangle_test("__ZTIZN8csconfig12LoadFromFileERNS_6csconfEE3$_0", "typeinfo for csconfig::LoadFromFile(csconfig::csconf&)::$_0"),
mu_demangle_test("__ZTIZN8csconfig12ModifyConfigERKNS_6csconfEE3$_1", "typeinfo for csconfig::ModifyConfig(csconfig::csconf const&)::$_1"),
mu_demangle_test("__ZTIZN6common7strutil14TokenizeAccessERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEcE3$_0", "typeinfo for common::strutil::TokenizeAccess(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, char)::$_0"),
mu_demangle_test("__ZTIZL10vpn_statusvE3$_0", "typeinfo for vpn_status()::$_0"),
mu_demangle_test("__ZTIZL11ztna_statusiE3$_1", "typeinfo for ztna_status(int)::$_1"),
mu_demangle_test("__ZTIZN8sbconfig12LoadFromFileERNS_6sbconfEE3$_0", "typeinfo for sbconfig::LoadFromFile(sbconfig::sbconf&)::$_0"),
mu_demangle_test("__ZTIZN8sbconfig12ModifyConfigERKNS_6sbconfEE3$_1", "typeinfo for sbconfig::ModifyConfig(sbconfig::sbconf const&)::$_1"),

// from : https://github.com/rizinorg/rz-libdemangle/issues/50
mu_demangle_test("__ZNSt3__1L15__get_nullptr_tEv", "std::__1::__get_nullptr_t()"),
mu_demangle_test("__ZNKSt3__19nullptr_tcvPT_IcEEv", "std::__1::nullptr_t::operator char*<char>() const"),
mu_demangle_test("__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1INS_9nullptr_tEEEPKc", "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::basic_string<std::__1::nullptr_t>(char const*)"),
mu_demangle_test("__ZNKSt3__19nullptr_tcvPT_IKcEEv", "std::__1::nullptr_t::operator char const*<char const>() const"),
mu_demangle_test("__ZNSt3__19nullptr_tC1EMNS0_5__natEi", "std::__1::nullptr_t::nullptr_t(int std::__1::nullptr_t::__nat::*)"),
mu_demangle_test("__ZNSt3__19nullptr_tC2EMNS0_5__natEi", "std::__1::nullptr_t::nullptr_t(int std::__1::nullptr_t::__nat::*)"),
mu_demangle_test("__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2INS_9nullptr_tEEEPKc", "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::basic_string<std::__1::nullptr_t>(char const*)"),
);

mu_main(gpl, cxx, RZ_DEMANGLE_OPT_ENABLE_ALL);

0 comments on commit da94a53

Please sign in to comment.