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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20000224-1.c] - Blame information for rev 717

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
int loop_1 = 100;
2
int loop_2 = 7;
3
int flag = 0;
4
 
5
int test (void)
6
{
7
    int i;
8
    int counter  = 0;
9
 
10
    while (loop_1 > counter) {
11
        if (flag & 1) {
12
            for (i = 0; i < loop_2; i++) {
13
                counter++;
14
            }
15
        }
16
        flag++;
17
    }
18
    return 1;
19
}
20
 
21
int main()
22
{
23
    if (test () != 1)
24
      abort ();
25
 
26
    exit (0);
27
}
28
 

powered by: WebSVN 2.1.0

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