summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/990804-1.c
blob: 130c0fb5e51c391543eefd3522c6874915cab5a7 (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
int gfbyte ( void ) 
{
 return 0;
} 

int main( void ) 
{
 int i,j,k ;

 i = gfbyte();

 i = i + 1 ;

 if ( i == 0 ) 
     k = -0 ;
 else
     k = i + 0 ;

 if (i != 1)
   abort ();

 k = 1 ;
 if ( k <= i)
     do 
	 j = gfbyte () ;
     while ( k++ < i ) ;

 exit (0);
}