]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.dg/uninit-8.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.dg / uninit-8.c
diff --git a/gcc/testsuite/gcc.dg/uninit-8.c b/gcc/testsuite/gcc.dg/uninit-8.c
deleted file mode 100644 (file)
index 94117da..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Uninitialized variable warning tests...
-   Inspired by part of optabs.c:expand_binop.
-   May be the same as uninit-1.c.  */
-
-/* { dg-do compile } */
-/* { dg-options "-O -Wuninitialized" } */
-
-#include <limits.h>
-
-void
-add_bignums (int *out, int *x, int *y)
-{
-    int p, sum;
-    int carry; /* { dg-bogus "carry" "uninitialized variable warning" { xfail *-*-* } } */
-
-    p = 0;
-    for (; *x; x++, y++, out++, p++)
-    {
-       if (p)
-           sum = *x + *y + carry;
-       else
-           sum = *x + *y;
-
-       if (sum < 0)
-       {
-           carry = 1;
-           sum -= INT_MAX;
-       }
-       else
-           carry = 0;
-    }
-}