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/] [gcc.c-torture/] [execute/] [20030221-1.c] - Blame information for rev 301

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

Line No. Rev Author Line
1 297 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.