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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explicit60.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do run  }
2
extern "C" void abort ();
3
 
4
template  void f ();
5
template  void g ()
6
{
7
  abort ();
8
}
9
 
10
template <> void g ()
11
{
12
  abort ();
13
}
14
 
15
template  class C
16
{
17
  public:
18
    void ff () { f (); }
19
    void gg () { g (); }
20
    template  void f () {}
21
    template  void g () {}
22
    template  void f (int) { abort(); }
23
    template  void g (int) { abort(); }
24
};
25
 
26
template  void f ()
27
{
28
  abort ();
29
}
30
 
31
template <> void f ()
32
{
33
  abort ();
34
}
35
 
36
int main ()
37
{
38
  C c;
39
  c.ff();
40
  c.gg();
41
  C d;
42
  d.ff();
43
  d.gg();
44
}

powered by: WebSVN 2.1.0

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