From f0465801c10359224330c81bcdd857584e07634a Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 4 Jun 2019 00:01:40 -0700 Subject: Fix non-adjacent bit-fields --- test/bitfield-non-adjacent.c | 3 +++ test/bitfield-non-adjacent.qbe | 1 + 2 files changed, 4 insertions(+) create mode 100644 test/bitfield-non-adjacent.c create mode 100644 test/bitfield-non-adjacent.qbe (limited to 'test') diff --git a/test/bitfield-non-adjacent.c b/test/bitfield-non-adjacent.c new file mode 100644 index 0000000..ea5233b --- /dev/null +++ b/test/bitfield-non-adjacent.c @@ -0,0 +1,3 @@ +struct { + int x : 1, y, z : 1; +} s = {.z = 1}; diff --git a/test/bitfield-non-adjacent.qbe b/test/bitfield-non-adjacent.qbe new file mode 100644 index 0000000..e216054 --- /dev/null +++ b/test/bitfield-non-adjacent.qbe @@ -0,0 +1 @@ +export data $s = align 4 { z 8, b 1, z 3 } -- cgit v1.2.3