From 57aa80a06fc5ea416fb50fc674bec00570697dd5 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Mon, 14 May 2018 02:52:42 -0700 Subject: [PATCH] Add regression tests for symbols that demangle OK now Fixes #133 --- tests/tests.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/tests.rs b/tests/tests.rs index b9eedb2..f570457 100755 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -326,6 +326,16 @@ demangles!( "func::Object func(int)" ); +demangles!( + _ZNK7mozilla6layers19CapturedBufferState20ForEachTextureClientIZNS0_21CompositorBridgeChild21NotifyBeginAsyncPaintI6RefPtrIS1_EEEvRT_EUlS7_E_EEvS7_, + "void mozilla::layers::CapturedBufferState::ForEachTextureClient >(RefPtr&)::{lambda(auto:1)#1}>(void mozilla::layers::CompositorBridgeChild::NotifyBeginAsyncPaint >(RefPtr&)::{lambda(auto:1)#1}) const" +); + +demangles!( + _ZNSt3__116forward_as_tupleIJRKZN11tconcurrent6detail6sharedIFvvEEC1IZNS1_7yielder13await_suspendINS1_12task_promiseIvEEEEvNSt12experimental13coroutines_v116coroutine_handleIT_EEEUlvE_EEbNS_10shared_ptrINS1_17cancelation_tokenEEEOSE_PvEUlRSI_DpOT_E_EEENS_5tupleIJSP_EEESP_, + "std::__1::tuple::shared >(std::experimental::coroutines_v1::coroutine_handle >)::{lambda()#1}>(std::__1::shared_ptr, void tconcurrent::yielder::await_suspend >(std::experimental::coroutines_v1::coroutine_handle >)::{lambda()#1}&&, void*)::{lambda(tconcurrent::cancelation_token&, auto:1&&...)#1} const&&&...> std::__1::forward_as_tuple::shared >(std::experimental::coroutines_v1::coroutine_handle >)::{lambda()#1}>(std::__1::shared_ptr, void tconcurrent::yielder::await_suspend >(std::experimental::coroutines_v1::coroutine_handle >)::{lambda()#1}&&, void*)::{lambda(tconcurrent::cancelation_token&, auto:1&&...)#1} const&>(bool tconcurrent::detail::shared::shared >(std::experimental::coroutines_v1::coroutine_handle >)::{lambda()#1}>(std::__1::shared_ptr, void tconcurrent::yielder::await_suspend >(std::experimental::coroutines_v1::coroutine_handle >)::{lambda()#1}&&, void*)::{lambda(tconcurrent::cancelation_token&, auto:1&&...)#1} const&&&...)" +); + // Test cases found via differential testing against `c++filt` with `cargo-fuzz` // and `libFuzzer`.