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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic41.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
// A function parameter pack is only deduced if it's at the end
2
// { dg-options "-std=gnu++0x" }
3
template
4
void f(const Args&... args, int oops);
5
 
6
int main()
7
{
8
  f<>(1);
9
  f(1);
10
  f(1,2);
11
  f(1,2);                       // { dg-error "no match" }
12
}
13
 
14
// { dg-prune-output "note" }

powered by: WebSVN 2.1.0

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