Sign in
gnu
/
binutils-gdb
/
542162ebce58c5fd53bade345cd36d5248f65376
/
.
/
gdb
/
testsuite
/
gdb.cp
/
mb-templates.cc
blob: a7d4e2e7138d1fe250f2816d7d077ddda86ee275 [
file
] [
log
] [
blame
]
#include
<iostream>
using
namespace
std
;
template
<
class
T
>
void
foo
(
T i
)
{
std
::
cout
<<
"hi\n"
;
// set breakpoint here
}
int
main
()
{
foo
<int>
(
0
);
foo
<double>
(
0
);
foo
<int>
(
1
);
foo
<double>
(
1
);
foo
<int>
(
2
);
foo
<double>
(
2
);
}