summaryrefslogtreecommitdiff
path: root/test/bulk-memory.wast.from-wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/bulk-memory.wast.from-wast')
-rw-r--r--test/bulk-memory.wast.from-wast29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/bulk-memory.wast.from-wast b/test/bulk-memory.wast.from-wast
new file mode 100644
index 000000000..0f4ec70fa
--- /dev/null
+++ b/test/bulk-memory.wast.from-wast
@@ -0,0 +1,29 @@
+(module
+ (type $0 (func))
+ (memory $0 1024 1024)
+ (data (i32.const 0) "hello, world")
+ (func $memory.init (; 0 ;) (type $0)
+ (memory.init 0
+ (i32.const 512)
+ (i32.const 0)
+ (i32.const 12)
+ )
+ )
+ (func $data.drop (; 1 ;) (type $0)
+ (data.drop 0)
+ )
+ (func $memory.copy (; 2 ;) (type $0)
+ (memory.copy
+ (i32.const 512)
+ (i32.const 0)
+ (i32.const 12)
+ )
+ )
+ (func $memory.fill (; 3 ;) (type $0)
+ (memory.fill
+ (i32.const 0)
+ (i32.const 42)
+ (i32.const 1024)
+ )
+ )
+)