aboutsummaryrefslogtreecommitdiffstats
path: root/docs/linux/reporting_kernel_bugs.md
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-12-13 15:26:10 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-12-13 15:26:10 +0100
commita5c1ab05b300370278e59e13f7925ee09d504609 (patch)
tree086d602aee55e0ac428ba34b02a51775a74ee174 /docs/linux/reporting_kernel_bugs.md
parent2a752b7c5e39457c3c16ef91cf2192a42813c802 (diff)
sys/test: add more tests for bitfields
Add tests for issue #1542 The correct results are obtained with the following program: struct foo { unsigned char f0; unsigned int f1:4; unsigned short f2:4; }; struct bar { char f0; struct foo foo; }; int main() { struct bar y; memset(&y, 0, sizeof(y)); y.f0 = 0x12; y.foo.f0 = 0x34; y.foo.f1 = 0x56; y.foo.f2 = 0x78; int i; for (i = 0; i < sizeof(y); i++) printf("%02x", ((unsigned char*)&y)[i]); printf("\n"); }
Diffstat (limited to 'docs/linux/reporting_kernel_bugs.md')
0 files changed, 0 insertions, 0 deletions