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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [xb.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
foo (a, b)
2
{
3
  unsigned x = 1;
4
 
5
  a += b;
6
  a += x;
7
  if (a <= 0)
8
    return 1;
9
  return 0;
10
}
11
 
12
main ()
13
{
14
  printf ("%d\n", foo (1, ~0));
15
  printf ("%d\n", foo (0, ~0));
16
  printf ("%d\n", foo (-1, ~0));
17
}

powered by: WebSVN 2.1.0

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