summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20000224-1.c
blob: 295cc473b3e1bcbf2503dbde0f6a0958ea6d27d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
int loop_1 = 100;
int loop_2 = 7;
int flag = 0;

int test (void)
{
    int i;
    int counter  = 0;

    while (loop_1 > counter) {
        if (flag & 1) {
            for (i = 0; i < loop_2; i++) {
                counter++;
            }
        }
        flag++;
    }
    return 1;
}

int main()
{
    if (test () != 1)
      abort ();
    
    exit (0);
}