summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr41006-2.c
blob: 766778d410f9bdbe1059be290a770cb8599142ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
typedef int *FARPROC;
static int * __restrict__ 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);
}