diff options
author | Benjamin Bouvier <public@benj.me> | 2016-10-13 19:41:59 +0200 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-10-13 10:41:59 -0700 |
commit | 95d00d699c9e05b8a04885d019a09d8d2eebd0b5 (patch) | |
tree | 7a8426152e015ba1f614f5492472e0d0084d81f6 /test/memory-import.wast.fromBinary | |
parent | b4d7c60d82fc336e401026e7ba6dd67138259ae2 (diff) | |
download | binaryen-95d00d699c9e05b8a04885d019a09d8d2eebd0b5.tar.gz binaryen-95d00d699c9e05b8a04885d019a09d8d2eebd0b5.tar.bz2 binaryen-95d00d699c9e05b8a04885d019a09d8d2eebd0b5.zip |
Don't create a memory section for an imported memory; fixes #772 (#773)
Diffstat (limited to 'test/memory-import.wast.fromBinary')
-rw-r--r-- | test/memory-import.wast.fromBinary | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/memory-import.wast.fromBinary b/test/memory-import.wast.fromBinary new file mode 100644 index 000000000..1ba3cb0f3 --- /dev/null +++ b/test/memory-import.wast.fromBinary @@ -0,0 +1,10 @@ +(module + (type $0 (func (result i32))) + (import "env" "memory" (memory $0 1 1)) + (func $foo (type $0) (result i32) + (i32.load offset=13 + (i32.const 37) + ) + ) +) + |