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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/38030
2
// The call to f should be resolved at template definition time.
3
// { dg-do link }
4
 
5
struct B { };
6
struct D : public B { };
7
D d;
8
void f (B &) { }
9
template < class T >
10
void g ()
11
{
12
  return f (d);
13
}
14
void f (D &);
15
int main ()
16
{
17
  g ();
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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