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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [testsuite/] [gdb.c++/] [cttiadd1.cc] - Blame information for rev 578

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

Line No. Rev Author Line
1 578 markom
template<class T> T add(T v1, T v2);
2
 
3
void add1()
4
{
5
  char c;
6
  int i;
7
  float f;
8
 
9
  c = 'b';
10
  i = 3;
11
  f = 6.5;
12
 
13
  c = add(c, c);
14
  i = add(i, i);
15
  f = add(f, f);
16
}

powered by: WebSVN 2.1.0

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