aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-08-22 14:50:47 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-08-22 14:50:47 -0700
commitda043f9c7172bcbfda0cdb570fb3a979a4b1a525 (patch)
treecdb1c736351b12f0f40fd9247a583daa24281055
parentc9377734b798d8d311dfd3a5618dc49407703b93 (diff)
downloadgcc-da043f9c7172bcbfda0cdb570fb3a979a4b1a525.zip
gcc-da043f9c7172bcbfda0cdb570fb3a979a4b1a525.tar.gz
gcc-da043f9c7172bcbfda0cdb570fb3a979a4b1a525.tar.bz2
testsuite: Fix gcc.dg/torture/pr116420.c for targets default unsigned char [PR116464]
This is an obvious fix to the gcc.dg/torture/pr116420.c testcase which simplier changes from plain `char` to `signed char` so it works on targets where plain char defaults to unsigned. Pushed as obvious after a quick test for aarch64-linux-gnu to make sure the testcase passes now. PR testsuite/116464 gcc/testsuite/ChangeLog: * gcc.dg/torture/pr116420.c: Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr116420.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr116420.c b/gcc/testsuite/gcc.dg/torture/pr116420.c
index 9a784f5..81a6e13 100644
--- a/gcc/testsuite/gcc.dg/torture/pr116420.c
+++ b/gcc/testsuite/gcc.dg/torture/pr116420.c
@@ -1,7 +1,7 @@
/* { dg-do run } */
/* { dg-additional-options "-fno-forward-propagate -fno-tree-ch" } */
int a, d, e;
-char b = -1, c, f;
+signed char b = -1, c, f;
int main() {
int g;
for (; d < 1; d++) {