]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[ARM/AArch64] Use signed chars in gcc.dg/pr60114.c.
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Mon, 28 Apr 2014 12:42:54 +0000 (12:42 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Mon, 28 Apr 2014 12:42:54 +0000 (12:42 +0000)
PR c/60983
* gcc.dg/pr60114.c: Use signed chars.

From-SVN: r209858

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr60114.c

index 9cede570bc0419e81ca83f40388a45d9fc2b054c..71af46770e5d0d6bdf33d852bab7afdbc3d73522 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       PR c/60983
+       * gcc.dg/pr60114.c: Use signed chars.
+
 2014-04-28  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/59120
index 83f985257045212d909d54660a1e41753d0d10d7..c656a9586aabb3ca1676d114204c61273b8f31fa 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-Wconversion" } */
 
 struct S { int n, u[2]; };
-const char z[] = {
+const signed char z[] = {
   [0] = 0x100, /* { dg-warning "9:overflow in implicit constant conversion" } */
   [2] = 0x101, /* { dg-warning "9:overflow in implicit constant conversion" } */
 };
@@ -18,11 +18,11 @@ typedef int H[];
 void
 foo (void)
 {
-  char a[][3] = { { 0x100, /* { dg-warning "21:overflow in implicit constant conversion" } */
+  signed char a[][3] = { { 0x100, /* { dg-warning "28:overflow in implicit constant conversion" } */
                     1, 0x100 }, /* { dg-warning "24:overflow in implicit constant conversion" } */
                   { '\0', 0x100, '\0' } /* { dg-warning "27:overflow in implicit constant conversion" } */
                 };
-  (const char []) { 0x100 }; /* { dg-warning "21:overflow in implicit constant conversion" } */
+  (const signed char []) { 0x100 }; /* { dg-warning "28:overflow in implicit constant conversion" } */
   (const float []) { 1e0, 1e1, 1e100 }; /* { dg-warning "32:conversion" } */
   struct S s1 = { 0x80000000 }; /* { dg-warning "19:conversion of unsigned constant value to negative integer" } */
   struct S s2 = { .n = 0x80000000 }; /* { dg-warning "24:conversion of unsigned constant value to negative integer" } */