aboutsummaryrefslogtreecommitdiff
path: root/test/bitfield-unnamed-size-align.qbe
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-27 20:33:56 -0700
committerMichael Forney <mforney@mforney.org>2019-04-27 20:38:42 -0700
commit2b34742bf0dbabbdb7335838902323df66974b39 (patch)
tree021c5487c20d5bbae5ae12c4ddddf81aad135cc6 /test/bitfield-unnamed-size-align.qbe
parent1ef0706e1f2e97d0872eb801169de5023c3c8b7f (diff)
Unnamed bit-fields don't contribute to size or alignment of unions, or size of structs
Diffstat (limited to 'test/bitfield-unnamed-size-align.qbe')
-rw-r--r--test/bitfield-unnamed-size-align.qbe4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/bitfield-unnamed-size-align.qbe b/test/bitfield-unnamed-size-align.qbe
new file mode 100644
index 0000000..67dfecc
--- /dev/null
+++ b/test/bitfield-unnamed-size-align.qbe
@@ -0,0 +1,4 @@
+export data $s1 = align 4 { w 2, }
+export data $s2 = align 4 { w 1, }
+export data $u1 = align 4 { w 1, }
+export data $u2 = align 4 { w 1, }