aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/union-passing.c2
-rw-r--r--tests/union-passing.qbe7
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/union-passing.c b/tests/union-passing.c
new file mode 100644
index 0000000..14025c0
--- /dev/null
+++ b/tests/union-passing.c
@@ -0,0 +1,2 @@
+void f(union {int x;} u) {
+}
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
+}