summaryrefslogtreecommitdiff
path: root/test/roundtrip/generate-import-names.txt
blob: 75f483961675045d260670d98ee045c10f696e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;; TOOL: run-roundtrip
;;; ARGS: --stdout --generate-names
(module
  (import "an" "import" (func (param i32)))
  (import "another" "import" (func (param f32)))
  (func
    i32.const 0
    call 0
    f32.const 0
    call 1))
(;; STDOUT ;;;
(module
  (type $t0 (func (param i32)))
  (type $t1 (func (param f32)))
  (type $t2 (func))
  (import "an" "import" (func $an.import (type $t0)))
  (import "another" "import" (func $another.import (type $t1)))
  (func $f2 (type $t2)
    i32.const 0
    call $an.import
    f32.const 0x0p+0 (;=0;)
    call $another.import))
;;; STDOUT ;;)