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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr17724-2.C] - Blame information for rev 313

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR tree-optimization/17724
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
 
5
namespace N { char *strcpy (char *, const char *); }
6
extern "C" char *strcpy (char *, const char *);
7
inline char *N::strcpy (char *s, const char *t) { return ::strcpy (s, t); }
8
 
9
struct S { ~S (); };
10
int foo ();
11
 
12
int
13
main ()
14
{
15
  S s;
16
  int a;
17
  char b[64];
18
  N::strcpy (b, "ABCDEFGHIJKLM");
19
  while ((a = foo ()) != -1)
20
    if (a)
21
      return -1;
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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