* gcc.c-torture/execute/990804-1.c: New test.
From-SVN: r28484
This commit is contained in:
parent
e8fe3cc34e
commit
6d368e86d0
|
@ -1,3 +1,7 @@
|
|||
Wed Aug 4 01:17:17 1999 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.c-torture/execute/990804-1.c: New test.
|
||||
|
||||
1999-08-03 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* g++.old-deja/g++.brendan/crash63.C: Expect a POD warning
|
||||
|
|
|
@ -0,0 +1,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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue