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