Skip to content

Commit 434b258

Browse files
committed
review: add test
This test cannot pass until more work is done to translate `shared` types in Wasmtime.
1 parent 54a9543 commit 434b258

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
;;! shared_everything_threads = true
2+
;;! reference_types = true
3+
(component
4+
(core type $start (shared (func (param $context i32))))
5+
(core module $libc (table (export "start-table") shared 1 (ref null (shared func))))
6+
(core instance $libc (instantiate $libc))
7+
(core func $spawn_indirect (canon thread.spawn_indirect $start (table $libc "start-table")))
8+
)

0 commit comments

Comments
 (0)