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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr20458.C] - Diff between revs 301 and 338

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

Rev 301 Rev 338
/* { dg-do run } */
/* { dg-do run } */
/* { dg-options "-O2" } */
/* { dg-options "-O2" } */
/* The tail call optimization would inapproriately tail call the
/* The tail call optimization would inapproriately tail call the
   destructors due to not recognizing a call clobbered variable */
   destructors due to not recognizing a call clobbered variable */
namespace std
namespace std
{
{
        class locale
        class locale
        {
        {
                public:
                public:
                        locale();
                        locale();
                        ~locale();
                        ~locale();
        };
        };
}
}
struct B
struct B
{
{
        std::locale _M_buf_locale;
        std::locale _M_buf_locale;
        virtual ~B() {}
        virtual ~B() {}
};
};
struct C : public B
struct C : public B
{
{
        char *s;
        char *s;
};
};
void foo ()
void foo ()
{
{
        C c;
        C c;
}
}
int main()
int main()
{
{
        foo ();
        foo ();
        return 0;
        return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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