Skip to content

Commit 97550c7

Browse files
committed
Fix UBSAN positive in nda_factories_and_transformations.cpp
1 parent b213efc commit 97550c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/c++/nda_factories_and_transformations.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ TEST_F(NDAFactoriesTransformations, MakeViews) {
263263
TEST_F(NDAFactoriesTransformations, MakeRegular) {
264264
// make a view regular
265265
auto A = nda::array<int, 4>{1, 2, 3, 4};
266+
A() = 5;
266267
auto A_view = A();
267268
static_assert(std::is_same_v<decltype(A_view), nda::get_view_t<decltype(A)>>);
268269
auto A_reg = nda::make_regular(A_view);

0 commit comments

Comments
 (0)