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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [testsuite/] [gdb.c++/] [cttiadd2.cc] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
template<class T> T add2(T v1, T v2)
2
{
3
   T v3;
4
   v3 = v1;
5
   v3 += v2;
6
   return v3;
7
}
8
 
9
void subr2()
10
{
11
  char c;
12
  int i;
13
  float f;
14
 
15
  c = 'b';
16
  i = 3;
17
  f = 6.5;
18
 
19
  c = add2(c, c);
20
  i = add2(i, i);
21
  f = add2(f, f);
22
}

powered by: WebSVN 2.1.0

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