Skip to content

Commit b739e74

Browse files
committed
Rebase
1 parent 63a8b44 commit b739e74

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

flang/unittests/Runtime/CUDA/AllocatorCUF.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ TEST(AllocatableCUFTest, SimpleDeviceAllocate) {
5656
ScopedContext ctx;
5757
// REAL(4), DEVICE, ALLOCATABLE :: a(:)
5858
auto a{createAllocatable(TypeCategory::Real, 4)};
59-
a->raw().SetAllocIdx(kDeviceAllocatorPos);
60-
EXPECT_EQ((int)kDeviceAllocatorPos, a->raw().GetAllocIdx());
61-
EXPECT_FALSE(a->raw().HasAddendum());
59+
a->SetAllocIdx(kDeviceAllocatorPos);
60+
EXPECT_EQ((int)kDeviceAllocatorPos, a->GetAllocIdx());
61+
EXPECT_FALSE(a->HasAddendum());
6262
RTNAME(AllocatableSetBounds)(*a, 0, 1, 10);
6363
RTNAME(AllocatableAllocate)
6464
(*a, /*hasStat=*/false, /*errMsg=*/nullptr, __FILE__, __LINE__);
@@ -74,10 +74,10 @@ TEST(AllocatableCUFTest, SimplePinnedAllocate) {
7474
ScopedContext ctx;
7575
// INTEGER(4), PINNED, ALLOCATABLE :: a(:)
7676
auto a{createAllocatable(TypeCategory::Integer, 4)};
77-
EXPECT_FALSE(a->raw().HasAddendum());
78-
a->raw().SetAllocIdx(kPinnedAllocatorPos);
79-
EXPECT_EQ((int)kPinnedAllocatorPos, a->raw().GetAllocIdx());
80-
EXPECT_FALSE(a->raw().HasAddendum());
77+
EXPECT_FALSE(a->HasAddendum());
78+
a->SetAllocIdx(kPinnedAllocatorPos);
79+
EXPECT_EQ((int)kPinnedAllocatorPos, a->GetAllocIdx());
80+
EXPECT_FALSE(a->HasAddendum());
8181
RTNAME(AllocatableSetBounds)(*a, 0, 1, 10);
8282
RTNAME(AllocatableAllocate)
8383
(*a, /*hasStat=*/false, /*errMsg=*/nullptr, __FILE__, __LINE__);

0 commit comments

Comments
 (0)