diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-16 12:26:18 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-16 12:26:18 -0700 |
commit | de004660726acb148bf0022706b7019ca560172d (patch) | |
tree | de95581449d1db324c074859615501cf8f0bc5c3 /test/initializer-string.qbe | |
parent | 953e1e6f287d8bc00b2ef8d2197a20a549274eb3 (diff) |
tests -> test
Diffstat (limited to 'test/initializer-string.qbe')
-rw-r--r-- | test/initializer-string.qbe | 20 |
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 +} |