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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.cp/] [mb-templates.cc] - Rev 853

Go to most recent revision | Compare with Previous | Blame | View Log

 
#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);
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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