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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-O -fnon-call-exceptions -fno-tree-ccp -fno-tree-dce" }
3
 
4
extern "C" void abort ();
5
 
6
struct A
7
{
8
  void foo ()
9
  {
10
    this->bar ();
11
  }
12
  virtual void bar ()
13
  {
14
    abort ();
15
  }
16
  ~A ()
17
  {
18
  }
19
};
20
 
21
struct B:A
22
{
23
  virtual void bar ()
24
  {
25
  }
26
};
27
 
28
int
29
main ()
30
{
31
  B b;
32
  b.foo ();
33
  return 0;
34
}
35
 

powered by: WebSVN 2.1.0

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