summaryrefslogtreecommitdiff
path: root/test/lld/hello_world.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/lld/hello_world.wast')
-rw-r--r--test/lld/hello_world.wast18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/lld/hello_world.wast b/test/lld/hello_world.wast
index d1610cece..0564e64a8 100644
--- a/test/lld/hello_world.wast
+++ b/test/lld/hello_world.wast
@@ -1,21 +1,23 @@
(module
- (type $0 (func (result i32)))
- (type $1 (func (param i32) (result i32)))
+ (type $0 (func (param i32) (result i32)))
+ (type $1 (func (result i32)))
(type $2 (func))
(import "env" "puts" (func $puts (param i32) (result i32)))
- (global $global$0 (mut i32) (i32.const 66576))
- (global $global$1 i32 (i32.const 66576))
+ (global $global$0 (mut i32) (i32.const 66128))
+ (global $global$1 i32 (i32.const 66128))
+ (global $global$2 i32 (i32.const 581))
(table 1 1 anyfunc)
(memory $0 2)
- (data (i32.const 1024) "Hello, world\00")
+ (data (i32.const 568) "Hello, world\00")
(export "memory" (memory $0))
- (export "main" (func $main))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
+ (export "main" (func $main))
(export "__heap_base" (global $global$1))
- (func $main (; 1 ;) (type $0) (result i32)
+ (export "__data_end" (global $global$2))
+ (func $main (; 1 ;) (type $1) (result i32)
(drop
(call $puts
- (i32.const 1024)
+ (i32.const 568)
)
)
(i32.const 0)