projects
/
deliverable
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
[gdbserver] Move malloc.h include to server.h.
[deliverable/binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.cp
/
fpointer.cc
1
#include
"stdio.h"
2
3
int
foo
(){
4
return
11
;
5
}
6
7
int
bar
(){
8
return
12
;
9
}
10
11
int
bar
(
int
){
12
printf
(
"bar(int)
\n
"
);
13
return
13
;
14
}
15
16
int
bar
(
char
){
17
printf
(
"bar(char)
\n
"
);
18
return
14
;
19
}
20
21
int
(*
p1
)() = &
foo
;
22
int
(*
p2
)() = &
bar
;
23
int
(*
p
[
2
])() = {
p1
,
p2
};
24
25
int
(*
p3
)(
int
) = &
bar
;
26
int
(*
p4
)(
char
) = &
bar
;
27
28
int
main
()
29
{
30
p1
();
31
p2
();
32
33
p
[
0
]();
34
p
[
1
]();
35
36
p3
(
'a'
);
37
p4
(
1
);
38
39
return
0
;
40
}
This page took
0.029715 seconds
and
4
git commands to generate.