projects
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* coffread.c: Replace all occurrences of bfd_read with bfd_bread.
[binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.c++
/
cttiadd.cc
1
template
<
class
T
>
T
add
(
T v1
,
T v2
)
2
{
3
T v3
;
4
v3
=
v1
;
5
v3
+=
v2
;
6
return
v3
;
7
}
8
9
int
main
()
10
{
11
char
c
;
12
int
i
;
13
float
f
;
14
extern
void
add1
();
15
extern
void
subr2
();
16
extern
void
subr3
();
17
18
c
=
'a'
;
19
i
=
2
;
20
f
=
4.5
;
21
22
c
=
add
(
c
,
c
);
23
i
=
add
(
i
,
i
);
24
f
=
add
(
f
,
f
);
25
26
add1
();
27
subr2
();
28
subr3
();
29
}