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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr44535.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do run } */
2
 
3
namespace FOO {
4
 
5
template 
6
class A
7
{
8
public:
9
    void Enum();
10
    virtual void OnProv() = 0;
11
    virtual ~A() { }
12
};
13
typedef A B;
14
 
15
template
16
void A::Enum ()
17
{
18
    OnProv ();
19
}
20
} // namespace FOO
21
 
22
class C {};
23
 
24
class D: public C, public FOO::B {
25
public:
26
    void OnProv() {}
27
};
28
 
29
int main(int argc, char *argv[])
30
{
31
    D x;
32
    x.Enum();
33
    return 0;
34
}

powered by: WebSVN 2.1.0

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