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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do run } */
2
 
3
extern "C" void abort ();
4
 
5
struct B *b;
6
 
7
struct B
8
{
9
  virtual void f () { }
10
  ~B() { b->f(); }
11
};
12
 
13
struct D : public B
14
{
15
  virtual void f () { abort (); }
16
};
17
 
18
int main ()
19
{
20
  D d;
21
  b = &d;
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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