-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename assert_fault to assert_trap to match design repo terminology
- Loading branch information
1 parent
1888885
commit e343cdb
Showing
6 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(module | ||
(memory 100) | ||
|
||
(export "store" $store) | ||
(func $store (param $i i32) (param $v i32) (i32.store (get_local $i) (get_local $v))) | ||
|
||
(export "load" $load) | ||
(func $load (param $i i32) (result i32) (i32.load (get_local $i))) | ||
) | ||
|
||
(invoke "store" (i32.const 96) (i32.const 42)) | ||
(assert_eq (invoke "load" (i32.const 96)) (i32.const 42)) | ||
(assert_trap (invoke "store" (i32.const 97) (i32.const 13)) "runtime: out of bounds memory access") | ||
(assert_trap (invoke "load" (i32.const 97)) "runtime: out of bounds memory access") | ||
(assert_trap (invoke "store" (i32.const 98) (i32.const 13)) "runtime: out of bounds memory access") | ||
(assert_trap (invoke "load" (i32.const 98)) "runtime: out of bounds memory access") | ||
(assert_trap (invoke "store" (i32.const 99) (i32.const 13)) "runtime: out of bounds memory access") | ||
(assert_trap (invoke "load" (i32.const 99)) "runtime: out of bounds memory access") |