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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [dtor2.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 A
6
{
7
  ~A();
8
};
9
 
10
A::~A () {
11
  abort ();
12
}
13
 
14
struct B
15
{
16
  ~B();
17
};
18
 
19
B::~B () {
20
  if(true) return;
21
  A a;
22
}
23
 
24
int main()
25
{
26
  B b;
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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