repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
IRA: Ignore debug insns for uses in split_live_ranges_for_shrink_wrap. [PR116179]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
analyzer
/
function-ptr-3.c
blob
348ee4a0cb3f487a0bbb7fd699ce1cc84b0544b7
1
#include <stdlib.h>
2
3
typedef
void
*(*
alloc_func_t
) (
size_t
);
4
typedef
void
(*
free_func_t
) (
void
*);
5
6
typedef
struct
callbacks
7
{
8
alloc_func_t alloc_cb
;
9
free_func_t dealloc_cb
;
10
}
callbacks_t
;
11
12
void
test
(
void
)
13
{
14
callbacks_t cb
;
15
cb
.
alloc_cb
= (
alloc_func_t
)
0
;
16
cb
.
dealloc_cb
= (
free_func_t
)
0
;
17
}