X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.warn%2Fcompare1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.warn%2Fcompare1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=687d98661e441e2c922d594bbca862fa7b81340f;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.warn/compare1.C b/gcc/testsuite/g++.old-deja/g++.warn/compare1.C deleted file mode 100644 index 687d9866..00000000 --- a/gcc/testsuite/g++.old-deja/g++.warn/compare1.C +++ /dev/null @@ -1,36 +0,0 @@ -// Build don't link: -// Special g++ Options: -ansi -pedantic-errors -Wsign-compare - -// Copyright (C) 2001 Free Software Foundation, Inc. -// Contributed by Kaveh R. Ghazi 5/13/2001 - -int foo(int x, int y, unsigned u) -{ - /* A MAX_EXPR is non-negative if EITHER argument to the MAX_EXPR is - determined to be non-negative. */ - if (u < (x >? -1)) // WARNING - signed and unsigned - return x; - if (u < (x >? 10)) - return x; - if ((10 >? x) < u) - return x; - if (u < (x >? (y ? (x==y) : 10))) - return x; - if (((y ? 10 : (x==y)) >? x) < u) - return x; - - /* A MIN_EXPR is non-negative if BOTH arguments to the MIN_EXPR are - determined to be non-negative. */ - if (u < ((x?11:8)