aboutsummaryrefslogtreecommitdiff
path: root/test/initializer-string.qbe
diff options
context:
space:
mode:
Diffstat (limited to 'test/initializer-string.qbe')
-rw-r--r--test/initializer-string.qbe20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/initializer-string.qbe b/test/initializer-string.qbe
new file mode 100644
index 0000000..ba992da
--- /dev/null
+++ b/test/initializer-string.qbe
@@ -0,0 +1,20 @@
+export data $x = align 1 { b "hello", z 1, }
+export
+function $f() {
+@start.1
+ %.1 =l alloc4 6
+@body.2
+ %.2 =l add %.1, 0
+ storeb 104, %.2
+ %.3 =l add %.1, 1
+ storeb 101, %.3
+ %.4 =l add %.1, 2
+ storeb 108, %.4
+ %.5 =l add %.1, 3
+ storeb 108, %.5
+ %.6 =l add %.1, 4
+ storeb 111, %.6
+ %.7 =l add %.1, 5
+ storeb 0, %.7
+ ret
+}