diff mbox series

[Committed] PR testsuite/105486: Use "signed char" in gcc.dg/pr102950.c

Message ID 002701d8607b$ca06b230$5e141690$@nextmovesoftware.com
State New
Headers show
Series [Committed] PR testsuite/105486: Use "signed char" in gcc.dg/pr102950.c | expand

Commit Message

Roger Sayle May 5, 2022, 12:29 p.m. UTC
Although the automated regression testing scripts for powerpc64 appear
to be somewhat garbled at the moment, they've correctly identified that
my new test case for pr102950.c is failing on powerpc64, as char by
default is unsigned on this target.  This patch tweaks the new testcase
by explicitly using "signed char" so that it's testing the intended EVRP
behaviour portably.  Committed as obvious.


2022-05-05  Roger Sayle  <roger@nextmovesoftware.com>

gcc/testsuite/ChangeLog
	PR testsuite/105486
	* gcc.dg/pr102950.c: Use explicit "signed char" in test case.


Roger
--
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/pr102950.c b/gcc/testsuite/gcc.dg/pr102950.c
index 0ab23bd4dbc..317568370d4 100644
--- a/gcc/testsuite/gcc.dg/pr102950.c
+++ b/gcc/testsuite/gcc.dg/pr102950.c
@@ -3,9 +3,9 @@ 
 
 extern void link_error(void);
 
-static char a;
+static signed char a;
 static short d(unsigned e) {
-  char b;
+  signed char b;
   short c;
   a = b = e;
   if (b)