OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explicit74.C] - Diff between revs 305 and 338

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(); }
 
 

powered by: WebSVN 2.1.0

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