aboutsummaryrefslogtreecommitdiff
path: root/test/struct-return-1.qbe
diff options
context:
space:
mode:
Diffstat (limited to 'test/struct-return-1.qbe')
-rw-r--r--test/struct-return-1.qbe10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/struct-return-1.qbe b/test/struct-return-1.qbe
new file mode 100644
index 0000000..fcdf699
--- /dev/null
+++ b/test/struct-return-1.qbe
@@ -0,0 +1,10 @@
+type :s.1 = { w, }
+export
+function :s.1 $f() {
+@start.1
+ %.1 =l alloc4 4
+@body.2
+ %.2 =l add %.1, 0
+ storew 2, %.2
+ ret %.1
+}