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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [compat/] [eh/] [new1_x.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
#include 
2
 
3
extern "C" void exit (int);
4
extern "C" void abort (void);
5
 
6
extern void * operator new[] (size_t s) throw (std::bad_alloc);
7
extern void operator delete[] (void *p) throw ();
8
 
9
struct A
10
{
11
  A() { throw 1; }
12
  ~A() {}
13
};
14
 
15
int ret = 1;
16
 
17
void
18
new1_x ()
19
{
20
  try
21
    {
22
      A *p = new A[4];
23
    }
24
  catch (...) {}
25
  if (ret != 0)
26
    abort ();
27
  exit (0);
28
}

powered by: WebSVN 2.1.0

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