blob: 18a7600b75c3e6b8af1a4efcccb07b1019dc2ef9 (
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
29
30
31
32
33
34
35
36
37
38
39
40
|
/*
pr68624.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
int b, c, d, e = 1, f, g, h, j;
static int
fn1 ()
{
int a = c;
if (h)
return 9;
g = (c || b) % e;
if ((g || f) && b)
return 9;
e = d;
for (c = 0; c > -4; c--)
;
if (d)
c--;
j = c;
return d;
}
void
testTortureExecute (void)
{
fn1 ();
if (c != -4)
ASSERT (0);
return;
}
|