diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lit/strings.wast | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/lit/strings.wast b/test/lit/strings.wast index 5afdfdbcb..64974d005 100644 --- a/test/lit/strings.wast +++ b/test/lit/strings.wast @@ -11,6 +11,8 @@ ;; CHECK: (type $none_=>_none (func)) + ;; CHECK: (type $ref?|string|_ref?|string|_=>_none (func (param stringref stringref))) + ;; CHECK: (global $string-const stringref (string.const "string in a global")) (global $string-const stringref (string.const "string in a global")) @@ -185,4 +187,21 @@ ) ) ) + + ;; CHECK: (func $string.concat (param $a stringref) (param $b stringref) + ;; CHECK-NEXT: (local.set $a + ;; CHECK-NEXT: (string.concat + ;; CHECK-NEXT: (local.get $a) + ;; CHECK-NEXT: (local.get $b) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) + (func $string.concat (param $a stringref) (param $b stringref) + (local.set $a ;; validate the output is a stringref + (string.concat + (local.get $a) + (local.get $b) + ) + ) + ) ) |