summaryrefslogtreecommitdiff
path: root/test/lit/ctor-eval/string.wast
blob: 045c6eec01d32cf8a7129af09a1c5fede97fcb25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
;; RUN: foreach %s %t wasm-ctor-eval --ctors=test --kept-exports=test --quiet -all -S -o - | filecheck %s

;; We should not error on precomputing this string. Nothing should change in
;; the output, as precomputing a string results in an identical string.

(module
 (global $global (ref string) (string.const "one"))

 (export "test" (func $test))

 (func $test (result anyref)
  (global.get $global)
 )
)
;; CHECK:      (type $0 (func (result anyref)))

;; CHECK:      (export "test" (func $test_1))

;; CHECK:      (func $test_1 (type $0) (result anyref)
;; CHECK-NEXT:  (string.const "one")
;; CHECK-NEXT: )