Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/libphobos/testsuite/libphobos.betterc/test19421.d
2023-03-06 14:48:14 +01:00

13 lines
292 B
D

/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=19421
import core.memory;
extern(C) void main() @nogc nothrow pure
{
auto p = pureMalloc(1);
p = pureRealloc(p, 2);
if (p) pureFree(p);
p = pureCalloc(1, 1);
if (p) pureFree(p);
}