X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900211_04.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900211_04.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=81bea9ef7f1850329d6b140d3497a0d269dbd0b1;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900211_04.C b/gcc/testsuite/g++.old-deja/g++.bugs/900211_04.C deleted file mode 100644 index 81bea9ef..00000000 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900211_04.C +++ /dev/null @@ -1,27 +0,0 @@ -// g++ 1.36.1 bug 900211_04 - -// g++ fails to flag as errors attempts to compare pointer values against -// (non-zero) integer values; - -// Since implicit conversions of pointer to integers (or vise versa) are -// illegal, these comparisons are also illegal. - -// Cfront 2.0 passes this test. - -// keywords: comparison operators, pointer types, integral types - -int result; -int i; -char *p; - -void function () -{ - result = i == p; /* ERROR - caught by g++ */ - result = i != p; /* ERROR - caught by g++ */ - result = i > p; /* ERROR - missed */ - result = i < p; /* ERROR - missed */ - result = i >= p; /* ERROR - missed */ - result = i <= p; /* ERROR - missed */ -} - -int main () { return 0; }