diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-15 01:11:08 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-15 01:15:07 -0700 |
commit | fca0b26275a82c480a5286c281834dad6887b410 (patch) | |
tree | f0046a7b66a9e7f3c56f4c3caf7e4620481c2e9a /tests/initializer-replace-local.qbe | |
parent | b6e582d2842aa21e24a70675b760bba331dc0d72 (diff) |
Handle static sub-initializers
Diffstat (limited to 'tests/initializer-replace-local.qbe')
-rw-r--r-- | tests/initializer-replace-local.qbe | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/initializer-replace-local.qbe b/tests/initializer-replace-local.qbe new file mode 100644 index 0000000..72ad90a --- /dev/null +++ b/tests/initializer-replace-local.qbe @@ -0,0 +1,22 @@ +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, 1 + %.8 =w copy 97 + storeb %.8, %.7 + %.9 =l add %.1, 5 + storeb 0, %.9 + ret +} |