Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/analyzer/function-ptr-3.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
#include <stdlib.h> typedef void *(*alloc_func_t) (size_t); typedef void (*free_func_t) (void *); typedef struct callbacks { alloc_func_t alloc_cb; free_func_t dealloc_cb; } callbacks_t; void test (void) { callbacks_t cb; cb.alloc_cb = (alloc_func_t)0; cb.dealloc_cb = (free_func_t)0; }