diff options
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 +} |