URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-fprofile-generate" }
|
// { dg-options "-fprofile-generate" }
|
|
|
// GCC used to ICE with some EH edge missing.
|
// GCC used to ICE with some EH edge missing.
|
|
|
inline void* operator new(__SIZE_TYPE__, void* p) throw() { return p; }
|
inline void* operator new(__SIZE_TYPE__, void* p) throw() { return p; }
|
inline void operator delete (void*, void*) throw() { }
|
inline void operator delete (void*, void*) throw() { }
|
|
|
template void foo(void* p, T t)
|
template void foo(void* p, T t)
|
{
|
{
|
new(p) T(t);
|
new(p) T(t);
|
}
|
}
|
|
|
void bar();
|
void bar();
|
|
|
template struct A
|
template struct A
|
{
|
{
|
T* p;
|
T* p;
|
|
|
A() { try { foo(p, T()); } catch(...) {} }
|
A() { try { foo(p, T()); } catch(...) {} }
|
|
|
A(const A&) { try { bar(); } catch(...) { throw; } }
|
A(const A&) { try { bar(); } catch(...) { throw; } }
|
};
|
};
|
|
|
A > a;
|
A > a;
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.