* support/regression/tests/bug-1981238.c:
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 15 Nov 2008 17:41:36 +0000 (17:41 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 15 Nov 2008 17:41:36 +0000 (17:41 +0000)
  don't initialize unnamed bit-fields

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5269 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
support/regression/tests/bug-1981238.c

index c40df2062388fcc634b9eac2b1b4990460460125..59e0f40b66578bb48a222988a0ee4a6e8a71b7c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
          fixed RFE #2291335 : Unnamed bit-field initialization
        * support/regression/tests/bitfields.c:
          added test case for RFE #2291335
+       * support/regression/tests/bug-1981238.c:
+         don't initialize unnamed bit-fields
 
 2008-11-11 Raphael Neider <rneider AT web.de>
 
index 1934f5e81c0f3c5815686641e74898eb02559c2c..a8f2a6ca95191154afc2cc10ade7d67a90d9c25f 100644 (file)
@@ -16,12 +16,12 @@ code struct {
   char :0;
   int s:1;
   int t:7;
-} noPad = {1, 120, 1, 1, 127};
+} noPad = {1, 120, 1, 127};
 
 code struct {
   char  :0;
   char b;
-} initialNoPad[] = {{1, 2}, {3,4}};
+} initialNoPad[] = {{2}, {4}};
 
 void testBitfield (void)
 {