aboutsummaryrefslogtreecommitdiff
path: root/tests/union-passing.qbe
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-20 18:20:40 -0800
committerMichael Forney <mforney@mforney.org>2019-02-20 18:24:54 -0800
commit673ddb9e58883da5a8840fa7f5b16a439b3f5dd7 (patch)
treef6ab6d5d7738ba0350b0e0e4f2230a04da10a53f /tests/union-passing.qbe
parent9150901e4ebde2273bf266d608a7a05228e1d0df (diff)
Fix emittype for unions
Thanks to Andrew Chambers for the bug report.
Diffstat (limited to 'tests/union-passing.qbe')
-rw-r--r--tests/union-passing.qbe7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/union-passing.qbe b/tests/union-passing.qbe
new file mode 100644
index 0000000..96e8523
--- /dev/null
+++ b/tests/union-passing.qbe
@@ -0,0 +1,7 @@
+type :.1 = { w, }
+export
+function $f(:.1 %.1) {
+@start.1
+@body.2
+ ret
+}