This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR61741 testcase


Noticed by David, applied as obvious (stupid C language!).

Richard.

2014-07-10  Richard Biener  <rguenther@suse.de>

	PR c-family/61741
	* c-c++-common/torture/pr61741.c: Use signed char.

Index: gcc/testsuite/c-c++-common/torture/pr61741.c
===================================================================
--- gcc/testsuite/c-c++-common/torture/pr61741.c	(revision 212428)
+++ gcc/testsuite/c-c++-common/torture/pr61741.c	(working copy)
@@ -5,7 +5,7 @@ int a = 1, b;
 void
 foo (void)
 {
-  char c = 0;
+  signed char c = 0;
   for (; a; a--)
     for (; c >= 0; c++);
   if (!c)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]