Debian Codegraph @

tests/cli/missing-features/globals.wast

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots % -f mvp
2
3 (assert_invalid
4 (module
5 (global i32 (i32.const 0))
6 (global i32 (global.get 0))
7 )
8 "global.get of locally defined global")
9
10 (assert_invalid
11 (module
12 (global i32 (i32.const 0))
13 (table 1 funcref)
14 (elem (offset global.get 0))
15 )
16 "global.get of locally defined global")
17
18 (assert_invalid
19 (module
20 (global i32 (i32.const 0))
21 (memory 1)
22 (data (offset global.get 0))
23 )
24 "global.get of locally defined global")