OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gdb/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.cp/] [mb-templates.cc] - Blame information for rev 25

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 25 jlechner
 
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
int main()
12
{
13
    foo<int>(0);
14
    foo<double>(0);
15
    foo<int>(1);
16
    foo<double>(1);
17
    foo<int>(2);
18
    foo<double>(2);
19
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.