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 384 |
// { 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);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.