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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [compat/] [eh/] [nrv1_x.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
extern "C" void exit (int);
2
extern "C" void abort (void);
3
 
4
#include "nrv1.h"
5
 
6
extern A f (void);
7
 
8
int c, d;
9
 
10
void nrv1_x ()
11
{
12
  try
13
    { A a = f(); }
14
  catch (...) { }
15
  if (d < c)
16
    abort ();
17
  exit (0);
18
}
19
 
20
A::A() { ++c; }
21
A::~A() { ++d; }

powered by: WebSVN 2.1.0

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