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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/15629
2
// { dg-do link }
3
 
4
template class T;
5
 
6
template void func(T * t);
7
template        void func(T * t) {}
8
template void func<2>(T<2, 3>*);
9
 
10
template struct T {
11
  friend void func(T * t);
12
  friend void func   (T * t);
13
 
14
  void foo();
15
};
16
 
17
template void T::foo() {
18
  func((T<2,3>*)0);
19
}
20
 
21
int main() {
22
  T<2,3>().foo();
23
}

powered by: WebSVN 2.1.0

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