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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p4693.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// prms-id: 4693
3
 
4
class a {
5
public:
6
  virtual ~a();
7
};
8
 
9
class b {
10
public:
11
  virtual void set_var() = 0;
12
};
13
 
14
class c : public b, public a { };
15
 
16
class d : public c {
17
public:
18
  void set_var() { }
19
};
20
 
21
int main() {
22
  d * test;
23
  test = new d;
24
}

powered by: WebSVN 2.1.0

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