Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_limiter_node: Build issue: GCC 4.8 bug #693

Merged
merged 1 commit into from
Dec 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions test/tbb/test_limiter_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,18 +605,18 @@ TEST_CASE( "Deduction guides" ) {
}
#endif

struct TestLargeStruct {
char bytes[512]{ 0 };
};

//! Test correct node deallocation while using small_object_pool.
//! (see https://github.com/oneapi-src/oneTBB/issues/639)
//! \brief \ref error_guessing
TEST_CASE("Test correct node deallocation while using small_object_pool") {
struct TestLargeStruct {
char bytes[512]{ 0 };
};

tbb::flow::graph graph;
tbb::flow::queue_node<TestLargeStruct> input_node{ graph };
tbb::flow::function_node<TestLargeStruct> func{ graph, tbb::flow::serial,
[](const TestLargeStruct& input) { return input; } };
tbb::flow::queue_node<TestLargeStruct> input_node( graph );
tbb::flow::function_node<TestLargeStruct> func( graph, tbb::flow::serial,
[](const TestLargeStruct& input) { return input; } );

tbb::flow::make_edge( input_node, func );
CHECK( input_node.try_put( TestLargeStruct{} ) );
Expand Down