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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [doloop-2.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-do run } */
2
/* { dg-options "-O2" } */
3
extern void abort (void);
4
unsigned global_iters;
5
 
6
void bi_reverse(int len)
7
{
8
    do {
9
        global_iters++;
10
    } while (--len > 0);
11
}
12
 
13
int main()
14
{
15
  bi_reverse(5);
16
  if (global_iters != 5)
17
    abort ();
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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