MCPcopy Create free account
hub / github.com/Naios/function2 / TEST

Function TEST

test/regressions.cpp:23–29  ·  view source on GitHub ↗

Iterator dereference (nullptr) crash in Visual Studio This was caused through an issue with the allocated pointer swap on move

Source from the content-addressed store, hash-verified

21///
22/// This was caused through an issue with the allocated pointer swap on move
23TEST(regression_tests, move_iterator_dereference_nullptr) {
24 std::string test = "hey";
25 fu2::function<void()> fn = stateful_callable{std::move(test)};
26
27 auto fn2 = std::move(fn);
28 (void)fn2;
29}
30
31int function_issue_7_regression(int& i) {
32 return i;

Callers

nothing calls this directly

Calls 3

callFunction · 0.85
issue_14_createFunction · 0.85
assignMethod · 0.45

Tested by

no test coverage detected