Skip to content

Commit 97b099a

Browse files
Force alignment of an aligned test
1 parent e0a09cd commit 97b099a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ struct xsimd_api_test
138138
batch_type b = batch_type::load(v.data(), xsimd::aligned_mode());
139139
V res(size);
140140

141-
bool* b_data = new bool[size];
141+
alignas(arch_type::alignment()) bool b_data[size];
142142

143143
xsimd::store_as(res.data(), b, xsimd::unaligned_mode());
144144
INFO(name, " unaligned");

0 commit comments

Comments
 (0)