diff options
Diffstat (limited to 'test/lit/passes/precompute-strings.wast')
-rw-r--r-- | test/lit/passes/precompute-strings.wast | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/lit/passes/precompute-strings.wast b/test/lit/passes/precompute-strings.wast index 197e62c7a..74ca4d145 100644 --- a/test/lit/passes/precompute-strings.wast +++ b/test/lit/passes/precompute-strings.wast @@ -216,7 +216,9 @@ (func $slice (export "slice") (result (ref string)) ;; Slicing [3:6] here should definitely output "def". (stringview_wtf16.slice - (string.const "abcdefgh") + (string.as_wtf16 + (string.const "abcdefgh") + ) (i32.const 3) (i32.const 6) ) @@ -224,7 +226,9 @@ ;; CHECK: (func $slice-bad (type $2) (result (ref string)) ;; CHECK-NEXT: (stringview_wtf16.slice - ;; CHECK-NEXT: (string.const "abcd\c2\a3fgh") + ;; CHECK-NEXT: (string.as_wtf16 + ;; CHECK-NEXT: (string.const "abcd\c2\a3fgh") + ;; CHECK-NEXT: ) ;; CHECK-NEXT: (i32.const 3) ;; CHECK-NEXT: (i32.const 6) ;; CHECK-NEXT: ) @@ -233,7 +237,9 @@ ;; This slice contains non-ascii, so we do not optimize. (stringview_wtf16.slice ;; abcd£fgh - (string.const "abcd\C2\A3fgh") + (string.as_wtf16 + (string.const "abcd\C2\A3fgh") + ) (i32.const 3) (i32.const 6) ) |