* gcc.c-torture/execute/990804-1.c: New test.

From-SVN: r28484
This commit is contained in:
Jeffrey A Law 1999-08-04 07:18:41 +00:00 committed by Jeff Law
parent e8fe3cc34e
commit 6d368e86d0
2 changed files with 34 additions and 0 deletions

View File

@ -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

View File

@ -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);
}