X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2Ftests%2Fbitfields.c;h=2744094cfef929ddd857201abb14e2d8f1a374f5;hb=61473b6cce461b9b3541be619499e010fa5be31a;hp=a7882e9fd243532edbbdbc537bf368cf53294744;hpb=b67faf058b255ae9fc6524df188afe6ff1a3b1cc;p=fw%2Fsdcc diff --git a/support/regression/tests/bitfields.c b/support/regression/tests/bitfields.c index a7882e9f..2744094c 100644 --- a/support/regression/tests/bitfields.c +++ b/support/regression/tests/bitfields.c @@ -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};