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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20021011-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
/* PR opt/8165.  */
2
 
3
extern void abort (void);
4
 
5
char buf[64];
6
 
7
int
8
main (void)
9
{
10
  int i;
11
 
12
  __builtin_strcpy (buf, "mystring");
13
  if (__builtin_strcmp (buf, "mystring") != 0)
14
    abort ();
15
 
16
  for (i = 0; i < 16; ++i)
17
    {
18
      __builtin_strcpy (buf + i, "mystring");
19
      if (__builtin_strcmp (buf + i, "mystring") != 0)
20
        abort ();
21
    }
22
 
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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