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

Details | Compare with Previous | View Log

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