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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic-ex9.C] - Blame information for rev 318

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-options "-std=gnu++0x" }
2
template              char& f(Args... args);         // #1
3
template short& f(T1 a1, Args... args); // #2
4
template      int& f(T1 a2, T2 a3);          // #3
5
 
6
void g() {
7
  char& x = f();                      // calls #1
8
  short& y = f(1, 2, 3);              // calls #2
9
  int& z = f(1, 2);                   // calls #3
10
}

powered by: WebSVN 2.1.0

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