]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.bugs/900211_04.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900211_04.C
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 (file)
index 81bea9e..0000000
+++ /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; }