summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lit/strings.wast13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lit/strings.wast b/test/lit/strings.wast
index a871811e5..63139d900 100644
--- a/test/lit/strings.wast
+++ b/test/lit/strings.wast
@@ -37,6 +37,8 @@
;; CHECK: (type $ref|$array|_=>_none (func (param (ref $array))))
+ ;; CHECK: (type $stringref_=>_i32 (func (param stringref) (result i32)))
+
;; CHECK: (global $string-const stringref (string.const "string in a global \01\ff\00\t\t\n\n\r\r\"\"\'\'\\\\"))
(global $string-const stringref (string.const "string in a global \01\ff\00\t\09\n\0a\r\0d\"\22\'\27\\\5c"))
@@ -626,4 +628,15 @@
)
)
)
+
+ ;; CHECK: (func $string.hash (type $stringref_=>_i32) (param $ref stringref) (result i32)
+ ;; CHECK-NEXT: (string.hash
+ ;; CHECK-NEXT: (local.get $ref)
+ ;; CHECK-NEXT: )
+ ;; CHECK-NEXT: )
+ (func $string.hash (param $ref stringref) (result i32)
+ (string.hash
+ (local.get $ref)
+ )
+ )
)