summaryrefslogtreecommitdiff
path: root/test/lld
diff options
context:
space:
mode:
Diffstat (limited to 'test/lld')
-rw-r--r--test/lld/em_asm_main_thread.wat2
-rw-r--r--test/lld/em_asm_main_thread.wat.out4
2 files changed, 5 insertions, 1 deletions
diff --git a/test/lld/em_asm_main_thread.wat b/test/lld/em_asm_main_thread.wat
index 0435e9be0..65f530d69 100644
--- a/test/lld/em_asm_main_thread.wat
+++ b/test/lld/em_asm_main_thread.wat
@@ -12,6 +12,8 @@
(import "env" "emscripten_asm_const_int_sync_on_main_thread" (func $emscripten_asm_const_int_sync_on_main_thread (param i32 i32 i32) (result i32)))
(memory $0 2)
(data (i32.const 568) "{ Module.print(\"Hello world\"); }\00{ return $0 + $1; }\00{ Module.print(\"Got \" + $0); }\00")
+ (global (export "__start_em_asm") i32 (i32.const 568))
+ (global (export "__stop_em_asm") i32 (i32.const 652))
(table $0 1 1 funcref)
(global $global$0 (mut i32) (i32.const 66192))
(global $global$1 i32 (i32.const 66192))
diff --git a/test/lld/em_asm_main_thread.wat.out b/test/lld/em_asm_main_thread.wat.out
index 8fc99e081..91a022dbc 100644
--- a/test/lld/em_asm_main_thread.wat.out
+++ b/test/lld/em_asm_main_thread.wat.out
@@ -8,8 +8,10 @@
(type $0 (func (param i32 i32 i32) (result i32)))
(import "env" "emscripten_asm_const_int_sync_on_main_thread" (func $emscripten_asm_const_int_sync_on_main_thread (param i32 i32 i32) (result i32)))
(memory $0 2)
- (data (i32.const 568) "{ Module.print(\"Hello world\"); }\00{ return $0 + $1; }\00{ Module.print(\"Got \" + $0); }\00")
+ (data (i32.const 568) "")
(table $0 1 1 funcref)
+ (global $0 i32 (i32.const 568))
+ (global $1 i32 (i32.const 652))
(global $global$0 (mut i32) (i32.const 66192))
(global $global$1 i32 (i32.const 66192))
(global $global$2 i32 (i32.const 652))