OSDN Git Service

* gcc.dg/torture/pr8081.c: Fix char signedness assumption.
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 Jan 2012 14:50:41 +0000 (14:50 +0000)
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 Jan 2012 14:50:41 +0000 (14:50 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183192 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr8081.c

index a07c399..015c507 100644 (file)
@@ -1,3 +1,7 @@
+2012-01-15  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * gcc.dg/torture/pr8081.c: Fix char signedness assumption.
+
 2012-01-14  Andreas Schwab  <schwab@linux-m68k.org>
 
        * g++.dg/cpp0x/constexpr-rom.C: Add -G0 where applicable.
index 6899f6a..008ec5a 100644 (file)
@@ -16,11 +16,11 @@ main (int argc, char **argv)
     {
       return *(block *) &b;
     }
-  b.val[0] = -1;
-  b.val[9] = -2;
+  b.val[0] = 1;
+  b.val[9] = 2;
   a=retframe_block ();
-  if (a.val[0] != -1
-      || a.val[9] != -2)
+  if (a.val[0] != 1
+      || a.val[9] != 2)
     abort ();
   return 0;
 }