-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathimports3.wast
More file actions
75 lines (73 loc) · 1.91 KB
/
imports3.wast
File metadata and controls
75 lines (73 loc) · 1.91 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
(module
(func (export "func"))
(func (export "func-i32") (param i32))
(func (export "func-f32") (param f32))
(func (export "func->i32") (result i32) (i32.const 22))
(func (export "func->f32") (result f32) (f32.const 11))
(func (export "func-i32->i32") (param i32) (result i32) (local.get 0))
(func (export "func-i64->i64") (param i64) (result i64) (local.get 0))
(global (export "global-i32") i32 (i32.const 55))
(global (export "global-f32") f32 (f32.const 44))
(global (export "global-mut-i64") (mut i64) (i64.const 66))
(table (export "table-10-inf") 10 funcref)
(table (export "table-10-20") 10 20 funcref)
(memory (export "memory-2-inf") 2)
(memory (export "memory-2-4") 2 4)
)
(register "test")
(assert_unlinkable
(module
(import "test" "memory-2-4" (memory 1))
(import "test" "func-i32" (memory 1))
)
"incompatible import type"
)
(assert_unlinkable
(module
(import "test" "memory-2-4" (memory 1))
(import "test" "global-i32" (memory 1))
)
"incompatible import type"
)
(assert_unlinkable
(module
(import "test" "memory-2-4" (memory 1))
(import "test" "table-10-inf" (memory 1))
)
"incompatible import type"
)
(assert_unlinkable
(module
(import "test" "memory-2-4" (memory 1))
(import "spectest" "print_i32" (memory 1))
)
"incompatible import type"
)
(assert_unlinkable
(module
(import "test" "memory-2-4" (memory 1))
(import "spectest" "global_i32" (memory 1))
)
"incompatible import type"
)
(assert_unlinkable
(module
(import "test" "memory-2-4" (memory 1))
(import "spectest" "table" (memory 1))
)
"incompatible import type"
)
(assert_unlinkable
(module
(import "test" "memory-2-4" (memory 1))
(import "spectest" "memory" (memory 2))
)
"incompatible import type"
)
(assert_unlinkable
(module
(import "test" "memory-2-4" (memory 1))
(import "spectest" "memory" (memory 1 1))
)
"incompatible import type"
)