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

Subversion Repositories openrisc

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

Go to most recent revision | 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 A
6
{
7
  inline ~A ();
8
  virtual void foo () {}
9
};
10
 
11
struct B : A
12
{
13
  virtual void foo () { abort(); }
14
};
15
 
16
static inline void middleman (A *a)
17
{
18
  a->foo ();
19
}
20
 
21
inline A::~A ()
22
{
23
  middleman (this);
24
}
25
 
26
int main ()
27
{
28
   B b;
29
   return 0;
30
}

powered by: WebSVN 2.1.0

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