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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [crash15.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do assemble  }
// { dg-do assemble  }
// { dg-options "-O2" }
// { dg-options "-O2" }
// g++ crashed because we unsaved the TARGET_EXPR for the return value
// g++ crashed because we unsaved the TARGET_EXPR for the return value
// for get_allocator without first expanding it, because it was part of the
// for get_allocator without first expanding it, because it was part of the
// cleanup for the temporary string.
// cleanup for the temporary string.
// Derived from libstdc++ v3 code.
// Derived from libstdc++ v3 code.
class AA {};
class AA {};
void fee (const AA&);
void fee (const AA&);
class basic_string
class basic_string
{
{
public:
public:
  basic_string(const char*);
  basic_string(const char*);
  ~basic_string()
  ~basic_string()
  { fee (this->get_allocator()); }
  { fee (this->get_allocator()); }
  AA get_allocator();
  AA get_allocator();
};
};
class failure
class failure
{
{
public:
public:
  failure(const basic_string& __str);
  failure(const basic_string& __str);
};
};
class foo
class foo
{
{
public:
public:
  foo(int x)
  foo(int x)
  {
  {
    throw failure ("");
    throw failure ("");
  }
  }
};
};
void test05()
void test05()
{
{
  foo ofs(0);
  foo ofs(0);
}
}
 
 

powered by: WebSVN 2.1.0

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