X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Funinit-8.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Funinit-8.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=94117da37c929bbecfbb2246b7f64e80f4b189f1;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/uninit-8.c b/gcc/testsuite/gcc.dg/uninit-8.c deleted file mode 100644 index 94117da3..00000000 --- a/gcc/testsuite/gcc.dg/uninit-8.c +++ /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 - -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; - } -}