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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explicit65.C] - Blame information for rev 305

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

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
extern "C" void abort ();
3
 
4
template  void f ()
5
{
6
  abort ();
7
}
8
 
9
template <> void f ()
10
{
11
  abort ();
12
}
13
 
14
template  void f (int)
15
{
16
  abort ();
17
}
18
 
19
template <> void f (int)
20
{
21
}
22
 
23
template  class C
24
{
25
  friend void f (int);
26
  public:
27
    void ff () { f (0); }
28
};
29
 
30
int main ()
31
{
32
  C c;
33
  c.ff();
34
}

powered by: WebSVN 2.1.0

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