Debian Codegraph @

tests/cli/missing-features/gc/shared-everything-threads-arrays.wast

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots % -f=-shared-everything-threads
2
3 ;; This relies on the GC proposal (plus reference types) to check that shared
4 ;; arrays are not allowed without the shared-everything-threads proposal.
5 (assert_invalid
6 (module
7 (type $a (array i32))
8 (func (param $x (ref null $a)) (param $y i32) (result i32)
9 local.get $x
10 local.get $y
11 array.atomic.get seq_cst $a)
12 )
13 "shared-everything-threads support is not enabled")