URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// PR tree-optimization/17724
|
// PR tree-optimization/17724
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-O2" }
|
// { dg-options "-O2" }
|
|
|
namespace N { char *strcpy (char *, const char *); }
|
namespace N { char *strcpy (char *, const char *); }
|
extern "C" char *strcpy (char *, const char *) throw ();
|
extern "C" char *strcpy (char *, const char *) throw ();
|
inline char *N::strcpy (char *s, const char *t) { return ::strcpy (s, t); }
|
inline char *N::strcpy (char *s, const char *t) { return ::strcpy (s, t); }
|
|
|
struct S { ~S (); };
|
struct S { ~S (); };
|
int foo ();
|
int foo ();
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
S s;
|
S s;
|
int a;
|
int a;
|
char b[64];
|
char b[64];
|
N::strcpy (b, "ABCDEFGHIJKLM");
|
N::strcpy (b, "ABCDEFGHIJKLM");
|
while ((a = foo ()) != -1)
|
while ((a = foo ()) != -1)
|
if (a)
|
if (a)
|
return -1;
|
return -1;
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.