test
parent
b3153511ee
commit
4cfbdc08ec
|
@ -27,7 +27,7 @@ macro(compile_options target_name)
|
||||||
sanitizers(${target_name})
|
sanitizers(${target_name})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
project(blt-gp VERSION 0.3.23)
|
project(blt-gp VERSION 0.3.24)
|
||||||
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
|
|
||||||
|
|
|
@ -404,6 +404,11 @@ namespace blt::gp
|
||||||
thread_local tree_t child_tree{program};
|
thread_local tree_t child_tree{program};
|
||||||
|
|
||||||
c.copy_subtree(tree_t::subtree_point_t(child.start), child.end, child_tree);
|
c.copy_subtree(tree_t::subtree_point_t(child.start), child.end, child_tree);
|
||||||
|
if (!child_tree.check(detail::debug::context_ptr))
|
||||||
|
{
|
||||||
|
child_tree.print(std::cout, false, true);
|
||||||
|
BLT_ABORT("We found an error");
|
||||||
|
}
|
||||||
c.delete_subtree(tree_t::subtree_point_t(static_cast<ptrdiff_t>(c_node)));
|
c.delete_subtree(tree_t::subtree_point_t(static_cast<ptrdiff_t>(c_node)));
|
||||||
c.insert_subtree(tree_t::subtree_point_t(static_cast<ptrdiff_t>(c_node)), child_tree);
|
c.insert_subtree(tree_t::subtree_point_t(static_cast<ptrdiff_t>(c_node)), child_tree);
|
||||||
child_tree.clear(program);
|
child_tree.clear(program);
|
||||||
|
|
Loading…
Reference in New Issue