aboutsummaryrefslogtreecommitdiff
path: root/test/struct-passing-bitfield.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-05-10 14:40:51 -0700
committerMichael Forney <mforney@mforney.org>2019-05-10 22:03:59 -0700
commit923f6d78056f1d287565bcf491c38f654ae9f7be (patch)
tree48c0002aad65d264888d985ba78efe7869dce9c1 /test/struct-passing-bitfield.c
parente76bd99a3f6963de58f661ca9141cd1a723db004 (diff)
qbe: Fix QBE types for structs containing bit-fields
Diffstat (limited to 'test/struct-passing-bitfield.c')
-rw-r--r--test/struct-passing-bitfield.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/struct-passing-bitfield.c b/test/struct-passing-bitfield.c
new file mode 100644
index 0000000..fbda34a
--- /dev/null
+++ b/test/struct-passing-bitfield.c
@@ -0,0 +1,7 @@
+struct s {
+ char x, y;
+ long long z : 48;
+};
+
+void f(struct s s) {
+}