URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr17724-1.C] - Rev 154
Go to most recent revision | Compare with Previous | Blame | View Log
// PR tree-optimization/17724
// { dg-do compile }
// { dg-options "-O2" }
namespace N { char *strcpy (char *, const char *); }
extern "C" char *strcpy (char *, const char *) throw ();
inline char *N::strcpy (char *s, const char *t) { return ::strcpy (s, t); }
struct S { ~S (); };
int foo ();
int
main ()
{
S s;
int a;
char b[64];
N::strcpy (b, "ABCDEFGHIJKLM");
while ((a = foo ()) != -1)
if (a)
return -1;
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log