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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20030221-1.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR optimization/8613 */
2
/* Contributed by Glen Nakamura */
3
 
4
extern void abort (void);
5
 
6
int main (void)
7
{
8
  char buf[16] = "1234567890";
9
  char *p = buf;
10
 
11
  *p++ = (char) __builtin_strlen (buf);
12
 
13
  if ((buf[0] != 10) || (p - buf != 1))
14
    abort ();
15
 
16
  return 0;
17
}

powered by: WebSVN 2.1.0

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