From d2bde102ff975f30067203b5d039174d54a1b701 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 7 Jan 2020 07:27:38 +0100 Subject: pkg/compiler: fix another bitfield layout bug See the added test for details. --- sys/test/exec.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sys/test/exec.txt') diff --git a/sys/test/exec.txt b/sys/test/exec.txt index bf96f4b68..a2fb377cf 100644 --- a/sys/test/exec.txt +++ b/sys/test/exec.txt @@ -36,6 +36,7 @@ compare_data [ bf22 syz_bf_align[syz_bf_struct22] bf23 syz_bf_align[syz_bf_struct23] bf24 syz_bf_align[syz_bf_struct24] + bf25 syz_bf_align[syz_bf_struct25] str string blob array[int8] arr16be array[int16be] @@ -187,6 +188,15 @@ syz_bf_struct24 { f1 int64:4 } [packed] +syz_bf_struct25 { + f0 int16 + f1 int16:14 + f2 int16:1 + f3 int16:1 + f4 int16 + f5 void +} [packed, align_4] + type syz_bf_align[T] { f0 int8 f1 T -- cgit mrf-deployment