diff options
Diffstat (limited to 'test/string-concat.qbe')
-rw-r--r-- | test/string-concat.qbe | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/string-concat.qbe b/test/string-concat.qbe new file mode 100644 index 0000000..54fb1ee --- /dev/null +++ b/test/string-concat.qbe @@ -0,0 +1,12 @@ +data $.Lstring.2 = align 1 { b "\0001\000", } +export +function w $main() { +@start.1 +@body.2 + %.1 =l extsw 0 + %.2 =l mul %.1, 1 + %.3 =l add $.Lstring.2, %.2 + %.4 =w loadsb %.3 + %.5 =w extsb %.4 + ret %.5 +} |