diff options
author | Michael Forney <mforney@mforney.org> | 2019-05-10 14:40:51 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-05-10 22:03:59 -0700 |
commit | 923f6d78056f1d287565bcf491c38f654ae9f7be (patch) | |
tree | 48c0002aad65d264888d985ba78efe7869dce9c1 /test | |
parent | e76bd99a3f6963de58f661ca9141cd1a723db004 (diff) | |
download | cproc-923f6d78056f1d287565bcf491c38f654ae9f7be.tar.xz |
qbe: Fix QBE types for structs containing bit-fields
Diffstat (limited to 'test')
-rw-r--r-- | test/struct-passing-bitfield.c | 7 | ||||
-rw-r--r-- | test/struct-passing-bitfield.qbe | 7 |
2 files changed, 14 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) { +} diff --git a/test/struct-passing-bitfield.qbe b/test/struct-passing-bitfield.qbe new file mode 100644 index 0000000..2bd9a3c --- /dev/null +++ b/test/struct-passing-bitfield.qbe @@ -0,0 +1,7 @@ +type :s.1 = { l, } +export +function $f(:s.1 %.1) { +@start.1 +@body.2 + ret +} |