gcc/testsuite/gcc.c-torture/compile/pr41006-1.c
raw| 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 | } |