From 9c80c96e84c398165df1cd304c32229acb8328dc Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 21 Feb 2019 12:22:22 -0800 Subject: Emit complete union type definitions instead of just using the first member --- tests/union-passing.c | 2 +- tests/union-passing.qbe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3