Skip to content

Commit

Permalink
Merge pull request #138 from WebAssembly/really-unsigned
Browse files Browse the repository at this point in the history
Rename some test functions, for consistency with other functions.
  • Loading branch information
sunfishcode committed Oct 28, 2015
2 parents b065037 + 11a00bf commit dfe961c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions ml-proto/test/traps.wast
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@
(module
(memory 8)

(export "i32.load" $i32.load)
(func $i32.load (param $i i32) (i32.load (get_local $i)))
(export "i64.load" $i64.load)
(func $i64.load (param $i i32) (i64.load (get_local $i)))
(export "f32.load" $f32.load)
(func $f32.load (param $i i32) (f32.load (get_local $i)))
(export "f64.load" $f64.load)
(func $f64.load (param $i i32) (f64.load (get_local $i)))
(export "no_dce.i32.load" $no_dce.i32.load)
(func $no_dce.i32.load (param $i i32) (i32.load (get_local $i)))
(export "no_dce.i64.load" $no_dce.i64.load)
(func $no_dce.i64.load (param $i i32) (i64.load (get_local $i)))
(export "no_dce.f32.load" $no_dce.f32.load)
(func $no_dce.f32.load (param $i i32) (f32.load (get_local $i)))
(export "no_dce.f64.load" $no_dce.f64.load)
(func $no_dce.f64.load (param $i i32) (f64.load (get_local $i)))
)

(assert_trap (invoke "i32.load" (i32.const 8)) "out of bounds memory access")
(assert_trap (invoke "i64.load" (i32.const 8)) "out of bounds memory access")
(assert_trap (invoke "f32.load" (i32.const 8)) "out of bounds memory access")
(assert_trap (invoke "f64.load" (i32.const 8)) "out of bounds memory access")
(assert_trap (invoke "no_dce.i32.load" (i32.const 8)) "out of bounds memory access")
(assert_trap (invoke "no_dce.i64.load" (i32.const 8)) "out of bounds memory access")
(assert_trap (invoke "no_dce.f32.load" (i32.const 8)) "out of bounds memory access")
(assert_trap (invoke "no_dce.f64.load" (i32.const 8)) "out of bounds memory access")

0 comments on commit dfe961c

Please sign in to comment.