projects
/
deliverable
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
gdb/
[deliverable/binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.cp
/
mb-templates.cc
1
2
#include <iostream>
3
using namespace
std
;
4
5
template
<
class
T
>
6
void
foo
(
T i
)
7
{
8
std
::
cout
<<
"hi
\n
"
;
// set breakpoint here
9
}
10
11
template
<
class
T
>
12
void
multi_line_foo
(
T i
)
13
{
14
std
::
cout
// set multi-line breakpoint here
15
<<
"hi
\n
"
;
16
}
17
18
int
main
()
19
{
20
foo
<
int
>(
0
);
21
foo
<
double
>(
0
);
22
foo
<
int
>(
1
);
23
foo
<
double
>(
1
);
24
foo
<
int
>(
2
);
25
foo
<
double
>(
2
);
26
27
multi_line_foo
<
int
>(
0
);
28
multi_line_foo
<
double
>(
0
);
29
30
return
0
;
31
}
This page took
0.032158 seconds
and
4
git commands to generate.