summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr41006-1.c
blob: 8aef66dbdfeb8c700c0a32a0d5f85340485fda30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
typedef int (*FARPROC)();

typedef int (*LPFN_ACCEPTEX)(void*);
static LPFN_ACCEPTEX acceptex_fn;

int xWSAIoctl(void*);
static void get_fn(FARPROC* fn)
{
    FARPROC func;
    if (!xWSAIoctl( &func))
        *fn = func;
}

void get_fn_pointers()
{
    get_fn((FARPROC*)&acceptex_fn);
}