Files
tinycc/tests
herman ten brugge 5c6356ff8e default-initialization of bitfields
The code:

struct bf_SS {unsigned int bit:1,bits31:31; };
void func(void) {
  struct bf_SS bf_finit = { .bit = 1 };
}

will not init bits31 to 0.

tccgen.c:
- check_bf: New function to check if bitfield is present in struct/union
- decl_initializer: Call check_bf and set value to 0 is bitfield found

tests/tcctest.c:
- Add struct bitfield test code
2020-09-18 19:20:57 +02:00
..
2018-01-05 02:19:26 +01:00
2017-09-24 18:03:26 -07:00
2020-07-06 13:00:47 +02:00
2020-07-06 13:00:47 +02:00
2017-12-03 04:53:50 +01:00
2020-09-17 09:11:10 +02:00
2020-07-05 14:01:50 +02:00
2020-09-18 19:20:57 +02:00
2016-12-15 17:47:08 +01:00
2016-10-01 20:27:41 +02:00