990208-1.c (main): Don't pass constants through to doit's conditional.
authorRichard Henderson <rth@cygnus.com>
Fri, 12 May 2000 16:51:20 +0000 (09:51 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 12 May 2000 16:51:20 +0000 (09:51 -0700)
        * gcc.c-torture/execute/990208-1.c (main): Don't pass
        constants through to doit's conditional.

From-SVN: r33878

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/990208-1.c

index 735b1f81e8094e865c7c37a29ead1f19575276da..216623a6b0cc85ed6fc8ee7012e1b1781979899d 100644 (file)
@@ -1,3 +1,8 @@
+2000-05-12  Richard Henderson  <rth@cygnus.com>
+
+       * gcc.c-torture/execute/990208-1.c (main): Don't pass
+       constants through to doit's conditional.
+
 Thu May 11 19:02:43 2000  Jeffrey A Law  (law@cygnus.com)
 
        * gcc.c-torture/compile/20000511-1.c: New test.
index 37a11472962c568a48d6f3955d0c2ddea80e0f9d..9d7d71403238418de68eabd154a9500283b18a1f 100644 (file)
@@ -4,6 +4,7 @@
 
 #ifndef NO_LABEL_VALUES
 static void *ptr1, *ptr2;
+static int i = 1;
 
 static __inline__ void doit(void **pptr, int cond)
 {
@@ -27,9 +28,9 @@ static void bar(void);
 
 int main()
 {
-  f (1);
+  f (i);
   bar();
-  g (1);
+  g (i);
 
 #ifdef  __OPTIMIZE__
   if (ptr1 == ptr2)