aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-21 12:22:22 -0800
committerMichael Forney <mforney@mforney.org>2019-02-21 12:22:22 -0800
commit9c80c96e84c398165df1cd304c32229acb8328dc (patch)
tree9b2a3d20100b48048c88e93a18e719d10b6e9183 /tests
parent1abf2329fe59afa7490a8c5e5a90ef74fbaab8cd (diff)
downloadcproc-9c80c96e84c398165df1cd304c32229acb8328dc.tar.xz
Emit complete union type definitions instead of just using the first member
Diffstat (limited to 'tests')
-rw-r--r--tests/union-passing.c2
-rw-r--r--tests/union-passing.qbe2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/union-passing.c b/tests/union-passing.c
index 14025c0..ddf35f2 100644
--- a/tests/union-passing.c
+++ b/tests/union-passing.c
@@ -1,2 +1,2 @@
-void f(union {int x;} u) {
+void f(union {int x; float y;} u) {
}
diff --git a/tests/union-passing.qbe b/tests/union-passing.qbe
index 96e8523..2edd8db 100644
--- a/tests/union-passing.qbe
+++ b/tests/union-passing.qbe
@@ -1,4 +1,4 @@
-type :.1 = { w, }
+type :.1 = { { w } { s } }
export
function $f(:.1 %.1) {
@start.1