Skip to content
Open
Prev Previous commit
Next Next commit
Added death test for using an array as an index when creating an arra…
…y proxy
  • Loading branch information
christophe-murphy committed Sep 5, 2024
commit 480d5b2b9d6ceea91f29c62018b0a9ac85a516cd
5 changes: 5 additions & 0 deletions test/array_death_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ using af::seq;
using af::setDevice;
using af::sin;
using af::sort;
using af::span;

template<typename T>
class ArrayDeathTest : public ::testing::Test {};
Expand Down Expand Up @@ -55,6 +56,10 @@ void deathTest() {
array vals, inds;
sort(vals, inds, A);

array cond = constant(1, 3, b8);
auto X = A(span, cond);
array Y = X;

_exit(0);
}

Expand Down