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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic-ex7.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=gnu++0x" }
2
template struct Tuple { };
3
template              char& g(Tuple);       // #1
4
template short& g(Tuple);   // #2
5
template int& g(Tuple);  // #3
6
 
7
void f() {
8
  //  char& x1 = g(Tuple<>());             // calls #1
9
  short& y1 = g(Tuple());  // calls #2
10
  //  int& z1 = g(Tuple());   // calls #3
11
  //  int& z2 = g(Tuple());           // calls #3
12
  //  int& z3 = g(Tuple());           // calls #3
13
}

powered by: WebSVN 2.1.0

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