re PR c/5675 (const variables wrongly considered part of constant expressions (gcc...
authorIan Lance Taylor <ian@airs.com>
Mon, 17 Jan 2005 18:55:56 +0000 (18:55 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 17 Jan 2005 18:55:56 +0000 (18:55 +0000)
PR c/5675
* gcc.dg/c90-const-expr-3.c: Remove xfails on tests which now
pass--those that refer just to the variable, possibly with a
cast.
* gcc.dg/c99-const-expr-3.c: Likewise.

From-SVN: r93770

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-const-expr-3.c
gcc/testsuite/gcc.dg/c99-const-expr-3.c

index 99e86e2df9fbaabd2d8459097cfc03b29bff53ba..9f39f00e2337f2fcc953a2a49ed8d2f4cd5fadba 100644 (file)
@@ -1,4 +1,10 @@
-2005-01-16  Ian Lance Taylor  <ian@c2micro.com>
+2005-01-17  Ian Lance Taylor  <ian@airs.com>
+
+       PR c/5675
+       * gcc.dg/c90-const-expr-3.c: Remove xfails on tests which now
+       pass--those that refer just to the variable, possibly with a
+       cast.
+       * gcc.dg/c99-const-expr-3.c: Likewise.
 
        PR middle-end/13127
        * gcc.dg/20040206-1.c: Remove xfail on bogus warning which is no
index 75c8bff70f73b41d1e18fbaad27a95e4e734658b..0fda68e82b7bfc4540691d17fb52a39f16fb9413 100644 (file)
@@ -26,7 +26,7 @@ void
 foo (void)
 {
   ASSERT_NPC (0);
-  ASSERT_NOT_NPC (ZERO); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
+  ASSERT_NOT_NPC (ZERO);
   ASSERT_NPC (0 + 0);
   ASSERT_NOT_NPC (ZERO + 0); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
   ASSERT_NOT_NPC (ZERO + ZERO); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
@@ -35,11 +35,11 @@ foo (void)
   ASSERT_NPC (-0);
   ASSERT_NOT_NPC (-ZERO); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
   ASSERT_NPC ((char) 0);
-  ASSERT_NOT_NPC ((char) ZERO); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
+  ASSERT_NOT_NPC ((char) ZERO);
   ASSERT_NPC ((int) 0);
-  ASSERT_NOT_NPC ((int) ZERO); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
+  ASSERT_NOT_NPC ((int) ZERO);
   ASSERT_NPC ((int) 0.0);
-  ASSERT_NOT_NPC ((int) DZERO); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
+  ASSERT_NOT_NPC ((int) DZERO);
   ASSERT_NOT_NPC ((int) +0.0); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
   ASSERT_NOT_NPC ((int) (0.0+0.0)); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
   ASSERT_NOT_NPC ((int) (double)0.0); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
index cbf6da3b307f86ba4860d1ace72c22eaecedbb73..f230603332be3256fc0be6c26d08d12dc1e0c8ed 100644 (file)
@@ -25,7 +25,7 @@ void
 foo (void)
 {
   ASSERT_NPC (0);
-  ASSERT_NOT_NPC (ZERO); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
+  ASSERT_NOT_NPC (ZERO);
   ASSERT_NPC (0 + 0);
   ASSERT_NOT_NPC (ZERO + 0); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
   ASSERT_NOT_NPC (ZERO + ZERO); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
@@ -34,11 +34,11 @@ foo (void)
   ASSERT_NPC (-0);
   ASSERT_NOT_NPC (-ZERO); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
   ASSERT_NPC ((char) 0);
-  ASSERT_NOT_NPC ((char) ZERO); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
+  ASSERT_NOT_NPC ((char) ZERO);
   ASSERT_NPC ((int) 0);
-  ASSERT_NOT_NPC ((int) ZERO); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
+  ASSERT_NOT_NPC ((int) ZERO);
   ASSERT_NPC ((int) 0.0);
-  ASSERT_NOT_NPC ((int) DZERO); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
+  ASSERT_NOT_NPC ((int) DZERO);
   ASSERT_NOT_NPC ((int) +0.0); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
   ASSERT_NOT_NPC ((int) (0.0+0.0)); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */
   ASSERT_NOT_NPC ((int) (double)0.0); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */