[llvm] [flang][cuda] Fix unittest (PR #150136)

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 23 04:04:20 PDT 2025


================
@@ -79,6 +79,6 @@ TEST(AllocatableCUFTest, CUFSetAllocatorIndex) {
   // REAL(4), DEVICE, ALLOCATABLE :: a(:)
   auto a{createAllocatable(TypeCategory::Real, 4)};
   EXPECT_EQ((int)kDefaultAllocator, a->GetAllocIdx());
-  RTNAME(CUFSetAllocatorIndex)(*a, kDeviceAllocatorPos, __FILE__, __LINE__);
+  RTNAME(CUFSetAllocatorIndex)(a, kDeviceAllocatorPos, __FILE__, __LINE__);
----------------
Meinersbur wrote:

Aren't you running check-flang-rt yourself? The premerge-CI will not catch it because it does not enable CUF (FLANG_RT_INCLUDE_CUF).

https://github.com/llvm/llvm-project/pull/150136


More information about the llvm-commits mailing list