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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
#include <limits.h>
2
 
3
int n = 0;
4
 
5
g (i)
6
{
7
  n++;
8
}
9
 
10
f (m)
11
{
12
  int i;
13
  i = m;
14
  do
15
    {
16
      g (i * INT_MAX / 2);
17
    }
18
  while (--i > 0);
19
}
20
 
21
main ()
22
{
23
  f (4);
24
  if (n != 4)
25
    abort ();
26
  exit (0);
27
}

powered by: WebSVN 2.1.0

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