mirror of
https://github.com/Naios/continuable.git
synced 2025-12-07 01:06:44 +08:00
some tests
This commit is contained in:
parent
7c77e986f6
commit
d5477986c9
3
test.cpp
3
test.cpp
@ -92,12 +92,13 @@ int main(int argc, char** argv)
|
|||||||
// This will never be executed because the CallbackContainer was deallocated and its weak callback proxies are crash safe.
|
// This will never be executed because the CallbackContainer was deallocated and its weak callback proxies are crash safe.
|
||||||
weak_cb_test();
|
weak_cb_test();
|
||||||
|
|
||||||
SharedCallback<> weak_2 = make_shared_callback([]
|
auto weak_2 = make_shared_callback([]
|
||||||
{
|
{
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
auto wrapped = make_weak_wrapped_callback(weak_2);
|
auto wrapped = make_weak_wrapped_callback(weak_2);
|
||||||
|
auto wrapped2 = make_weak_wrapped_callback(WeakCallback<>(weak_2));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user