blob: 79665113801e7fc7fc3f44235162df648ede3f67 (
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
25
|
;;; TOOL: run-roundtrip
;;; ARGS: --stdout --debug-names --generate-names
;; The name generator should choose a different name if it already exists. This
;; can only be tested for funcs/locals, since no other names are roundtrippable
;; yet.
(module
;; Test func
(func)
(func $f0)
;; Test local
(func
(local i32)
(local $l0 i32))
)
(;; STDOUT ;;;
(module
(type $t0 (func))
(func $f0_1 (type $t0))
(func $f0 (type $t0))
(func $f2 (type $t0)
(local $l0_1 i32) (local $l0 i32)))
;;; STDOUT ;;)
|