blob: 401d3244b2321839429972a91ef5ad96aa9508bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
;; RUN: wasm-opt --deprecated-wat-parser -all %s -S -o - | filecheck %s
(module
;; CHECK: (type $0 (func (param i32)))
;; CHECK: (type $1 (func (result i32)))
;; CHECK: (import "env" "bad" (func $wrong (type $0) (param i32)))
;; CHECK: (func $foo (type $1) (result i32)
;; CHECK-NEXT: (i32.const 0)
;; CHECK-NEXT: )
(func $foo (result i32)
;; Non-standard block result format
(block i32
(i32.const 0)
)
)
;; Non-standard import after declared function
(import $wrong "env" "bad" (param i32))
)
|