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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lto/] [20081109_0.C] - Blame information for rev 717

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

Line No. Rev Author Line
1 693 jeremybenn
extern "C" { void abort (void);}
2
int foo (int);
3
 
4
class A
5
{
6
  int x;
7
 
8
public:
9
  A() { x = 2304; }
10
  ~A() { if (x != 2305) abort (); }
11
  void inc () { x++; }
12
};
13
 
14
 
15
int main()
16
{
17
  A x;
18
  x.inc();
19
  try
20
    {
21
      foo (0);
22
      abort (); // Should not execute
23
    }
24
  catch (int e)
25
    {
26
      return 0;
27
    }
28
}

powered by: WebSVN 2.1.0

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