diff options
author | Roberto Lublinerman <rluble@gmail.com> | 2024-03-14 20:48:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 03:48:07 +0000 |
commit | c166ca015860b337e9ce07a5e02cb707964056ba (patch) | |
tree | 235b8420f2c72d63b81d78e30af4dc5aeb7acbf4 /test | |
parent | 419b65ce2cb145dc781a32a565bb75496b7ac668 (diff) | |
download | binaryen-c166ca015860b337e9ce07a5e02cb707964056ba.tar.gz binaryen-c166ca015860b337e9ce07a5e02cb707964056ba.tar.bz2 binaryen-c166ca015860b337e9ce07a5e02cb707964056ba.zip |
[Strings] Implement string.concat in the interpreter (#6403)
Diffstat (limited to 'test')
-rw-r--r-- | test/lit/passes/precompute-strings.wast | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lit/passes/precompute-strings.wast b/test/lit/passes/precompute-strings.wast index 3436e0069..f5b1660bc 100644 --- a/test/lit/passes/precompute-strings.wast +++ b/test/lit/passes/precompute-strings.wast @@ -22,5 +22,15 @@ (string.const "ab") ) ) + + ;; CHECK: (func $concat (type $0) (result i32) + ;; CHECK-NEXT: (i32.const 1) + ;; CHECK-NEXT: ) + (func $concat (export "concat") (result i32) + (string.eq + (string.concat (string.const "a") (string.const "b")) + (string.const "ab") + ) + ) ) |