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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [explicit-args4.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/48883
2
// { dg-do link }
3
 
4
template
5
T myMax(T a, T b) {
6
   if(a < b) return a;
7
   return b;
8
}
9
 
10
int main() {
11
   bool even = true;
12
   int (*fp)(int, int);
13
   fp = even ? myMax : myMax;   /* yields link error */
14
}

powered by: WebSVN 2.1.0

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