(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
compilable/
test19713.d
extern (C++)
{
    double twice(double d)
    {
        return d * 2;
    }

    void* createFunction(R)(R function(double));
}

void main()
{
    const f = createFunction(&twice);
}