summaryrefslogtreecommitdiff
path: root/test/roundtrip/inline-import-memory.txt
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2018-01-02 11:07:37 -0800
committerGitHub <noreply@github.com>2018-01-02 11:07:37 -0800
commit7fcc96d15444346b244500fc205a677ca2d745d0 (patch)
treee7885e9b96d64f70d6bfe9762399f20c1b839524 /test/roundtrip/inline-import-memory.txt
parent0325ab2170fdf7c6ec0896d3f26c175827f2b9ce (diff)
downloadwabt-7fcc96d15444346b244500fc205a677ca2d745d0.tar.gz
wabt-7fcc96d15444346b244500fc205a677ca2d745d0.tar.bz2
wabt-7fcc96d15444346b244500fc205a677ca2d745d0.zip
Add WatWriter option for inline imports (#703)
* Add WatWriter option for inline imports Inline imports are more flexible than regular imports, since they can be combined with inline exports. For example: ``` (func (export "baz") (import "foo" "bar") (param i32)) ``` * Remove unused overload of WriteInlineImport
Diffstat (limited to 'test/roundtrip/inline-import-memory.txt')
-rw-r--r--test/roundtrip/inline-import-memory.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/roundtrip/inline-import-memory.txt b/test/roundtrip/inline-import-memory.txt
new file mode 100644
index 00000000..4d55a0e7
--- /dev/null
+++ b/test/roundtrip/inline-import-memory.txt
@@ -0,0 +1,9 @@
+;;; TOOL: run-roundtrip
+;;; FLAGS: --stdout --inline-import
+(module
+ (import "mod" "m1" (memory 2 3))
+)
+(;; STDOUT ;;;
+(module
+ (memory (;0;) (import "mod" "m1") 2 3))
+;;; STDOUT ;;)