* support/regression/tests/bitfields.c:
[fw/sdcc] / support / regression / tests / bitfields.c
index a7882e9fd243532edbbdbc537bf368cf53294744..2744094cfef929ddd857201abb14e2d8f1a374f5 100644 (file)
@@ -420,3 +420,11 @@ __test2291335(void)
   ASSERT(ls2291335_2.a == 1);
   ASSERT(ls2291335_2.b == 2);
 }
+
+/* test case for bug #2366757: segfault when initializing structure with bitfield */
+
+struct
+{
+  char a : 1;
+  char b : 1;
+} s2366757 = {0};