We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b1c496 commit cd55046Copy full SHA for cd55046
flang/unittests/Runtime/Ragged.cpp
@@ -14,7 +14,7 @@ using namespace Fortran::runtime;
14
TEST(Ragged, RaggedArrayAllocateDeallocateTest) {
15
struct RaggedArrayHeader header;
16
unsigned rank = 2;
17
- int64_t *extents = new int64_t[2];
+ int64_t *extents = reinterpret_cast<int64_t *>(malloc(2 * sizeof(int64_t)));
18
extents[0] = 10;
19
extents[1] = 100;
20
RaggedArrayHeader *ret = (RaggedArrayHeader *)_FortranARaggedArrayAllocate(
0 commit comments