Skip to content

Commit

Permalink
[test] Functions sharing same implementation (WebAssembly#1289)
Browse files Browse the repository at this point in the history
  • Loading branch information
atdrendel authored and gumb0 committed Mar 4, 2021
1 parent 060f521 commit 5ed9d56
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/core/exports.wast
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
(module $Other1)
(assert_return (invoke $Func "e" (i32.const 42)) (i32.const 43))

(module
(type (;0;) (func (result i32)))
(func (;0;) (type 0) (result i32) i32.const 42)
(export "a" (func 0))
(export "b" (func 0))
(export "c" (func 0)))
(assert_return (invoke "a") (i32.const 42))
(assert_return (invoke "b") (i32.const 42))
(assert_return (invoke "c") (i32.const 42))

(assert_invalid
(module (export "a" (func 0)))
"unknown function"
Expand Down

0 comments on commit 5ed9d56

Please sign in to comment.