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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [temp_default2.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-std=c++0x" }
2
 
3
template 
4
void f(T t = 0, U u = 0);       // { dg-message "note" }
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
  // { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } 10 }
12
  f(); // f(0,0)
13
  f(); // f(0,0)
14
}

powered by: WebSVN 2.1.0

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