Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions float_literals.wast
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@
(module quote "(global f32 (f32.const 0x1.0p_+1))")
"unknown operator"
)
(assert_malformed
(module quote "(global f32 (f32.const nan:0x80_0000))")
"constant out of range"
)

(assert_malformed
(module quote "(global f64 (f64.const _100))")
Expand Down Expand Up @@ -505,3 +509,7 @@
(module quote "(global f64 (f64.const 0x1.0p_+1))")
"unknown operator"
)
(assert_malformed
(module quote "(global f64 (f64.const nan:0x10_0000_0000_0000))")
"constant out of range"
)
3 changes: 0 additions & 3 deletions proposals/function-references/data.wast
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@
(data (global.get $g) "a")
)

(module (memory 1) (global i32 (i32.const 0)) (data (global.get 0) "a"))
(module (memory 1) (global $g i32 (i32.const 0)) (data (global.get $g) "a"))


;; Corner cases

Expand Down
3 changes: 0 additions & 3 deletions proposals/function-references/elem.wast
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@
(assert_return (invoke "call-7") (i32.const 65))
(assert_return (invoke "call-9") (i32.const 66))

(module (table 1 funcref) (global i32 (i32.const 0)) (elem (global.get 0) $f) (func $f))
(module (table 1 funcref) (global $g i32 (i32.const 0)) (elem (global.get $g) $f) (func $f))


;; Corner cases

Expand Down
3 changes: 0 additions & 3 deletions proposals/function-references/global.wast
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,6 @@
"unknown global"
)

(module (global i32 (i32.const 0)) (global i32 (global.get 0)))
(module (global $g i32 (i32.const 0)) (global i32 (global.get $g)))

(assert_invalid
(module (global i32 (global.get 1)) (global i32 (i32.const 0)))
"unknown global"
Expand Down
6 changes: 3 additions & 3 deletions proposals/gc/global.wast
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,6 @@
"unknown global"
)

(module (global i32 (i32.const 0)) (global i32 (global.get 0)))
(module (global $g i32 (i32.const 0)) (global i32 (global.get $g)))

(assert_invalid
(module (global i32 (global.get 1)) (global i32 (i32.const 0)))
"unknown global"
Expand All @@ -361,6 +358,9 @@
"unknown global"
)

(module (global i32 (i32.const 0)) (global i32 (global.get 0)))
(module (global $g i32 (i32.const 0)) (global i32 (global.get $g)))

(assert_invalid
(module (global (import "test" "global-mut-i32") (mut i32)) (global i32 (global.get 0)))
"constant expression required"
Expand Down