summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20000225-1.c
blob: 10706fcf469c59e5fb9d97d86120a5a6f5ed4b67 (plain) (blame)
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
29
30
31
/*
   20000225-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

void
testTortureExecute (void)
{
    int nResult;
    int b=0;
    int i = -1;

    do
    {
     if (b!=0) {
       ASSERT (0);
       nResult=1;
     } else {
      nResult=0;
     }
     i++;
     b=(i+2)*4;
    } while (i < 0);
    return;
}