* gcc.c-torture/execute/990804-1.c: New test.
authorJeffrey A Law <law@cygnus.com>
Wed, 4 Aug 1999 07:18:41 +0000 (07:18 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 4 Aug 1999 07:18:41 +0000 (01:18 -0600)
From-SVN: r28484

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/990804-1.c [new file with mode: 0644]

index ba0cc11bb60405bdd12d540684a83e5288d2cd85..dad74b1e3bd396ad0f772401f71b3552758919d6 100644 (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
diff --git a/gcc/testsuite/gcc.c-torture/execute/990804-1.c b/gcc/testsuite/gcc.c-torture/execute/990804-1.c
new file mode 100644 (file)
index 0000000..130c0fb
--- /dev/null
@@ -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);
+} 
+