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/] [990222-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
char line[4] = { '1', '9', '9', '\0' };
2
 
3
int main()
4
{
5
  char *ptr = line + 3;
6
 
7
  while ((*--ptr += 1) > '9') *ptr = '0';
8
  if (line[0] != '2' || line[1] != '0' || line[2] != '0')
9
    abort();
10
  return 0;
11
}

powered by: WebSVN 2.1.0

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