blob: 3b084898208b59fb2fa8281a948af6be1e00406d (
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
41
|
/*
990804-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
int gfbyte ( void )
{
return 0;
}
void
testTortureExecute (void)
{
int i,j,k ;
i = gfbyte();
i = i + 1 ;
if ( i == 0 )
k = -0 ;
else
k = i + 0 ;
if (i != 1)
ASSERT (0);
k = 1 ;
if ( k <= i)
do
j = gfbyte () ;
while ( k++ < i ) ;
return;
}
|