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/] [virtual2.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// Origin: Mark Mitchell 
3
 
4
template 
5
struct B
6
{
7
  virtual void f() = 0;
8
};
9
 
10
template 
11
struct D : public B {
12
  virtual void f();
13
};
14
 
15
void g() {
16
  B* bi = new D;
17
}
18
 
19
template 
20
void B::f() {}
21
 

powered by: WebSVN 2.1.0

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