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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [temp_default2.C] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-options "-std=c++0x" }
2
 
3
template 
4
void f(T t = 0, U u = 0);
5
 
6
void g()
7
{
8
  f(1, 'c'); // f(1,'c')
9
  f(1); // f(1,0)
10
  f(); // { dg-error "no matching function" }
11
  f(); // f(0,0)
12
  f(); // f(0,0)
13
}

powered by: WebSVN 2.1.0

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