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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [compat/] [eh/] [new1_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
#include 
2
#include 
3
 
4
extern "C" void exit (int);
5
extern "C" void abort (void);
6
 
7
extern void * operator new[] (std::size_t s) throw (std::bad_alloc);
8
extern void operator delete[] (void *p) throw ();
9
 
10
struct A
11
{
12
  A() { throw 1; }
13
  ~A() {}
14
};
15
 
16
int ret = 1;
17
 
18
void
19
new1_x ()
20
{
21
  try
22
    {
23
      A *p = new A[4];
24
    }
25
  catch (...) {}
26
  if (ret != 0)
27
    abort ();
28
  exit (0);
29
}

powered by: WebSVN 2.1.0

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