repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Automatic date update in version.in
[binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.cp
/
fpointer.cc
blob
007ea39307766d6661125fe5c77adfe132525b37
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
}