tcc-stupidos/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
..
misc __builtin_/__bound_: A 'stay tiny' approach to the matter 2020-07-06 13:42:02 +02:00
pp Add make testspp.all/testspp.20 2018-01-05 02:19:26 +01:00
tests2 Revert "add tests for float conversions to u64" 2020-09-17 07:12:49 +00:00
42test.h tccpp: Allow computed include like 42.h 2016-12-15 17:47:10 +01:00
abitest.c Spelling fixes 2017-09-24 18:03:26 -07:00
asm-c-connect-1.c rework leading underscores 2020-07-06 13:00:47 +02:00
asm-c-connect-2.c rework leading underscores 2020-07-06 13:00:47 +02:00
asmtest.S tccasm: Accept suffixed cmovCC 2017-12-03 04:53:50 +01:00
boundtest.c Add vla bound support for arm,arm64 and riscv64 2020-06-17 11:24:17 +02:00
bug.c Allow strings in __builtin_constant_p 2020-09-17 09:11:10 +02:00
gcctestsuite.sh Fix gcc testsuite problems 2020-07-05 14:01:50 +02:00
libtcc_test.c Add error_func and error_opaque getters to libtcc 2019-10-14 09:36:14 +02:00
libtcc_test_mt.c libtcc: accept tcc_define_symbol(s1, "sym=value", NULL) 2020-07-06 13:00:47 +02:00
Makefile macos: tcc searches for libtcc.dyln in the same directory as its executable 2020-07-09 12:04:57 +02:00
tcctest.c default-initialization of bitfields 2020-09-18 19:20:57 +02:00
tcctest.h tccpp: Implement __BASE_FILE__ macro 2016-12-15 17:47:08 +01:00
testfp.c Remove misc. files 2016-10-01 20:27:41 +02:00
vla_test.c Improved variable length array support. 2013-04-27 22:58:52 +01:00