Debian Codegraph @

tests/cli/missing-features/component-model/shared-everything-threads-builtins.wast

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots % -f=-shared-everything-threads
2
3 (assert_invalid
4 (component
5 ;; Refer to a non-existent function type (i.e., 0); validation for
6 ;; `thread.spawn_ref` happens first.
7 (core func $spawn (canon thread.spawn_ref 0))
8 )
9 "`thread.spawn_ref` requires the shared-everything-threads proposal")
10
11 (assert_invalid
12 (component
13 ;; Refer to a non-existent function and table types (i.e., 0); validation
14 ;; for `thread.spawn_indirect` happens first.
15 (core func $spawn_indirect (canon thread.spawn_indirect 0 (table 0)))
16 )
17 "`thread.spawn_indirect` requires the shared-everything-threads proposal")
18
19 (assert_invalid
20 (component
21 (core func $parallelism (canon thread.available_parallelism))
22 )
23 "`thread.available_parallelism` requires the shared-everything-threads proposal")