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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explicit61.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 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 (0); }
19
    void gg () { g (1); }
20
    template  void f () { abort(); }
21
    template  void g () { abort(); }
22
    template  void f (int) {}
23
    template  void g (int) {}
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.