URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do run }
|
// { dg-do run }
|
// Reduced from a testcase by Yotam Medini
|
// Reduced from a testcase by Yotam Medini
|
|
|
// egcs 1.1 seems to generate code that deletes a NULL pointer.
|
// egcs 1.1 seems to generate code that deletes a NULL pointer.
|
|
|
template struct foo { void fuz(); ~foo(); };
|
template struct foo { void fuz(); ~foo(); };
|
struct baz { int i; foo j; } *p = 0;
|
struct baz { int i; foo j; } *p = 0;
|
template void foo::fuz() { delete p; }
|
template void foo::fuz() { delete p; }
|
template foo::~foo() { delete p; }
|
template foo::~foo() { delete p; }
|
template class foo;
|
template class foo;
|
int main() { foo(); }
|
int main() { foo(); }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.