[Patch,testsuite]: Fix yet another test case that breaks because it assumes sizeof(int) > 2

Georg-Johann Lay avr@gjlay.de
Fri Jan 13 10:17:00 GMT 2012


Fixed as obvious as 1 << 15 fits always inside an int whereas 1<<16 does not.


Ok for trunk?

Johann

	* gcc.dg/debug/dwarf2/pr49871.c: Fix to work on int16 platforms.


Index: gcc.dg/debug/dwarf2/pr49871.c
===================================================================
--- gcc.dg/debug/dwarf2/pr49871.c       (revision 183150)
+++ gcc.dg/debug/dwarf2/pr49871.c       (working copy)
@@ -4,7 +4,7 @@

 struct S
 {
-  char a[1 << 16];
+  char a[1 << 15];
   int b;
 } s;



More information about the Gcc-patches mailing list