mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-19 19:34:19 +08:00
For
union U { struct {int a,b}; int c; };
union U u = {{ 1, 2, }};
The unnamed first member of union U needs to actually exist in the
structure so initializer parsing isn't confused about the double braces.
That means also the a and b members must be part of _that_, not of
union U directly. Which in turn means we need to do a bit more work
for field lookup.
See the testcase extension for more things that need to work.
|
||
|---|---|---|
| .. | ||
| pp | ||
| tests2 | ||
| abitest.c | ||
| asmtest.S | ||
| boundtest.c | ||
| gcctestsuite.sh | ||
| libtcc_test.c | ||
| Makefile | ||
| tcctest.c | ||
| tcctest.h | ||
| tcctest.py | ||
| testfp.c | ||
| vla_test.c | ||