Skip to content

Commit

Permalink
[nomerge] test only aligned_alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
fknorr committed Jan 9, 2024
1 parent 34e3827 commit 8bf02e1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/simulation_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include <catch2/generators/catch_generators.hpp>


#if 0

bool is_fibonacci(const int *buf, int n) {
for(int i = 0; i < n; ++i) {
if(buf[i] != (i < 2 ? i : buf[i - 1] + buf[i - 2])) return false;
Expand Down Expand Up @@ -102,3 +104,12 @@ TEST_CASE("sub-group based word packing built for 32-element sub-groups breaks f
CHECK(out != expected);
}
}

#endif

TEST_CASE("aligned_alloc", "[debug]") {
auto a = std::aligned_alloc(4, 256);
CHECK(a != nullptr);
auto b = std::aligned_alloc(4, 256);
CHECK(b != nullptr);
}

0 comments on commit 8bf02e1

Please sign in to comment.