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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [koenig3.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/13157
2
 
3
namespace aa
4
{
5
  double abs(double);
6
  long double abs(long double);
7
}
8
 
9
namespace fu
10
{
11
  template 
12
  struct X
13
  {};
14
 
15
  template 
16
  X test(X x)
17
  {
18
    using ::aa::abs;
19
    return abs(x);
20
  }
21
 
22
  template 
23
  X abs(X);
24
 
25
  X x;
26
  X z = test(x);
27
}
28
 

powered by: WebSVN 2.1.0

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