Skip to content

Commit dd047c5

Browse files
authored
[Flang] remove setting lowerbound for non existing dimension in shift runtime test case (NFC) (#76990)
The shift2 array only has 1 dimension but the lower bound for a second dimension is being set causing a seg fault on AIX. Co-authored-by: Mark Danial <[email protected]>
1 parent 6af713a commit dd047c5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

flang/unittests/Runtime/Transformational.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ TEST(Transformational, Shifts) {
250250
auto shift2{MakeArray<TypeCategory::Integer, 1>(
251251
std::vector<int>{2}, std::vector<std::int8_t>{1, -1})};
252252
shift2->GetDimension(0).SetLowerBound(-1); // shouldn't matter
253-
shift2->GetDimension(1).SetLowerBound(2);
254253
RTNAME(Cshift)(result, *array, *shift2, 2, __FILE__, __LINE__);
255254
EXPECT_EQ(result.type(), array->type());
256255
EXPECT_EQ(result.rank(), 2);

0 commit comments

Comments
 (0)