Commit 46281fe9 by FritzFlorian

Fix: aligned stack test uses non-aligned data array.

parent e1eb31da
Pipeline #1433 passed with stages
in 3 minutes 23 seconds
......@@ -3,7 +3,6 @@
#include "pls/internal/base/system_details.h"
#include "pls/internal/data_structures/aligned_stack.h"
#include "pls/internal/data_structures/bounded_trading_deque.h"
using namespace pls::internal::data_structures;
using namespace pls::internal::base;
......@@ -16,7 +15,7 @@ TEST_CASE("aligned stack stores objects correctly", "[internal/data_structures/a
constexpr long data_size = 1024;
SECTION("plain aligned stack") {
char data[data_size];
alignas(system_details::CACHE_LINE_SIZE) char data[data_size];
aligned_stack stack{data, data_size, data_size};
test_stack(stack);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment