diff options
-rw-r--r-- | src/preamble.js | 1 | ||||
-rw-r--r-- | tests/test_other.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 2e874519..50497a98 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -729,6 +729,7 @@ function demangle(func) { } else { switch (c) { case 'P': list.push(parse(true, 1, true)[0] + '*'); break; // pointer + case 'R': list.push(parse(true, 1, true)[0] + '&'); break; // reference case 'L': { // literal i++; // skip basic type var end = func.indexOf('E', i); diff --git a/tests/test_other.py b/tests/test_other.py index 2d3dde3f..af6231e1 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -1922,6 +1922,7 @@ done. EM_ASM(Module.print(demangle('__Z3FooIidEvi'))); EM_ASM(Module.print(demangle('__ZN3Foo3BarILi5EEEvv'))); EM_ASM(Module.print(demangle('__ZNK10__cxxabiv120__si_class_type_info16search_below_dstEPNS_19__dynamic_cast_infoEPKvib'))); + EM_ASM(Module.print(demangle('__Z9parsewordRPKciRi'))); return 0; } ''') @@ -1937,5 +1938,6 @@ void Foo<int>() void Foo<int, double>(int) void Foo::Bar<5>() __cxxabiv1::__si_class_type_info::search_below_dst(__cxxabiv1::__dynamic_cast_info*, void*, int, bool) +parseword(char*&, int, int&) ''', run_js('a.out.js')) |