aboutsummaryrefslogtreecommitdiff
path: root/test/add-int-pointer.qbe
diff options
context:
space:
mode:
Diffstat (limited to 'test/add-int-pointer.qbe')
-rw-r--r--test/add-int-pointer.qbe10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/add-int-pointer.qbe b/test/add-int-pointer.qbe
new file mode 100644
index 0000000..22825ee
--- /dev/null
+++ b/test/add-int-pointer.qbe
@@ -0,0 +1,10 @@
+export
+function $f() {
+@start.1
+@body.2
+ %.1 =l extsw 1
+ %.2 =l mul %.1, 4
+ %.3 =l add $x, %.2
+ ret
+}
+export data $x = align 4 { z 8 }