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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [koenig8.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/40740
2
 
3
template
4
T addsome(T v) {
5
  return v+1;
6
}
7
 
8
int addsome(int v) {
9
  return v+2;
10
}
11
 
12
int main() {
13
  int i = 0;
14
  if (addsome(i) != 2)
15
    return 1;
16
  if (addsome<>(i) != 1)
17
    return 2;
18
  return 0;
19
}
20
 

powered by: WebSVN 2.1.0

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