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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [static_cast.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
 
3
template 
4
void accumulate(InputIterator first,
5
                 BinaryOperation binary_op) {
6
}
7
 
8
 
9
template int p( int val, R& r )
10
{
11
   return val + r;
12
}
13
 
14
template void f(R)
15
{
16
   accumulate(0, static_cast(p) );
17
}
18
 
19
int main()
20
{
21
   f(0);
22
}

powered by: WebSVN 2.1.0

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