Debian Codegraph @

tests/cli/missing-features/gc/shared-everything-threads-structs.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 ;; structs are not allowed without the shared-everything-threads proposal.
5 (assert_invalid
6 (module
7 (type $s (struct (field i32)))
8 (func (param $x (ref null $s)) (result i32)
9 local.get $x
10 struct.atomic.get seq_cst $s 0)
11 )
12 "shared-everything-threads support is not enabled")