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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr40642.C] - Blame information for rev 315

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
// { dg-options "-fprofile-generate" }
3
 
4
// GCC used to ICE with some EH edge missing.
5
 
6
inline void* operator new(__SIZE_TYPE__, void* p) throw() { return p; }
7
inline void operator delete (void*, void*) throw() { }
8
 
9
template void foo(void* p, T t)
10
{
11
  new(p) T(t);
12
}
13
 
14
void bar();
15
 
16
template struct A
17
{
18
  T* p;
19
 
20
  A() { try { foo(p, T()); } catch(...) {} }
21
 
22
  A(const A&) { try { bar(); } catch(...) { throw; } }
23
};
24
 
25
A > a;
26
 

powered by: WebSVN 2.1.0

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