diff options
| author | Michael Matz <matz@suse.de> | 2017-04-29 22:09:10 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2017-04-29 22:09:10 +0200 |
| commit | f775d687253df56d136f70e82c7367b6ba62e9fb (patch) | |
| tree | 38c554b65444666e2830e5cb71afa8f8fb1beef1 /tests/tcctest.c | |
| parent | 28084420fed1f833da04a6f69380c276c9431cff (diff) | |
| download | tinycc-f775d687253df56d136f70e82c7367b6ba62e9fb.tar.gz tinycc-f775d687253df56d136f70e82c7367b6ba62e9fb.tar.bz2 | |
Remove a bit-field TODO
Checked the lcc testsuite for bitfield stuff (in cq.c and fields.c),
fixed one more error in initializing unnamed members (which have
to be skipped), removed the TODO.
Diffstat (limited to 'tests/tcctest.c')
| -rw-r--r-- | tests/tcctest.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c index c267fee..dc6a060 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -2075,6 +2075,13 @@ void bitfield_test(void) } st4; st4.y = 1; printf("st4.y == %d\n", st4.y); + struct sbf5 { + int a; + char b; + int x : 12, y : 4, : 0, : 4, z : 3; + char c; + } st5 = { 1, 2, 3, 4, -3, 6 }; + printf("st5 = %d %d %d %d %d %d\n", st5.a, st5.b, st5.x, st5.y, st5.z, st5.c); } #ifdef __x86_64__ |
