Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/pr41006-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 typedef int (*FARPROC)(); |
2 | |
3 typedef int (*LPFN_ACCEPTEX)(void*); | |
4 static LPFN_ACCEPTEX acceptex_fn; | |
5 | |
6 int xWSAIoctl(void*); | |
7 static void get_fn(FARPROC* fn) | |
8 { | |
9 FARPROC func; | |
10 if (!xWSAIoctl( &func)) | |
11 *fn = func; | |
12 } | |
13 | |
14 void get_fn_pointers() | |
15 { | |
16 get_fn((FARPROC*)&acceptex_fn); | |
17 } |