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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr44206.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-do compile }
2
 
3
template struct A
4
{
5
  void foo(void(*)(A));
6
  void bar(void(*f)(A)) { foo(f); foo(f); }
7
};
8
 
9
template inline void FOO(A a)
10
{
11
  a.foo(0);
12
}
13
 
14
extern template void FOO(A<0>);
15
 
16
void BAR()
17
{
18
  A<0> a;
19
  FOO(a);
20
  a.bar(FOO);
21
}

powered by: WebSVN 2.1.0

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