We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56140b7 commit 648c733Copy full SHA for 648c733
test/core/shared-everything-threads/shared-everything-threads/globals.wast
@@ -26,6 +26,18 @@
26
(global (shared mut v128) (v128.const i64x2 0 0))
27
)
28
29
+;; Check that we can only use shared globals to initialize other shared globals.
30
+(module
31
+ (global $a (shared i32) (i32.const 0))
32
+ (global $b (shared i32) (global.get $a))
33
+)
34
+(assert_invalid
35
+ (module
36
+ (global $a i32 (i32.const 0))
37
38
+ )
39
+ "invalid type")
40
+
41
(assert_malformed
42
(module quote "(global (mut shared i64) (i64.const -1))")
43
"unexpected token")
0 commit comments