URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// PR tree-optimization/17724
|
// PR tree-optimization/17724
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-O2" }
|
// { dg-options "-O2" }
|
|
|
extern "C" char *strcpy (char* d, const char* s);
|
extern "C" char *strcpy (char* d, const char* s);
|
|
|
class A { public: A (); ~A (); };
|
class A { public: A (); ~A (); };
|
|
|
inline char * B (char *s, const char *t)
|
inline char * B (char *s, const char *t)
|
{ return ::strcpy (s, t); }
|
{ return ::strcpy (s, t); }
|
|
|
class C { int D (void); int E; };
|
class C { int D (void); int E; };
|
|
|
int C::D (void)
|
int C::D (void)
|
{
|
{
|
A a;
|
A a;
|
try
|
try
|
{
|
{
|
char z[22];
|
char z[22];
|
if (this->E) B (z, "");
|
if (this->E) B (z, "");
|
return 0;
|
return 0;
|
}
|
}
|
catch (int &f) { return -1; }
|
catch (int &f) { return -1; }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.