https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116767

--- Comment #1 from Raffaello Bertini <raffaellobertini at gmail dot com> ---
for simplicity sake i am writing here the C sample code:

================================================================================
#include <stddef.h>

typedef void MyFunc(void);

const MyFunc my_func;

const MyFunc* g_f = my_func;

void my_func()
{
    int i = 0;
    i++;
}

int main(int argc, char* argv[])
{
    if (g_f != NULL)
        g_f();

    return 0;
}

================================================================================

Reply via email to