summaryrefslogtreecommitdiff
path: root/test/binaryen.js/debug-names.js.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js/debug-names.js.txt')
-rw-r--r--test/binaryen.js/debug-names.js.txt32
1 files changed, 25 insertions, 7 deletions
diff --git a/test/binaryen.js/debug-names.js.txt b/test/binaryen.js/debug-names.js.txt
index c982f2dc1..40e94c248 100644
--- a/test/binaryen.js/debug-names.js.txt
+++ b/test/binaryen.js/debug-names.js.txt
@@ -1,15 +1,19 @@
=== input wast ===
-(module $hello
- (global $world i32 (i32.const 0))
+(module $hel
+ (memory $lo 0 0)
+ (table $wor 0 0 funcref)
+ (global $ld i32 (i32.const 0))
(func $of (param $wasm i32)
(local $!#$%&'*+-./:<=>?@\^_`|~ f64)
)
)
=== parsed wast ===
-(module $hello
+(module $hel
(type $i32_=>_none (func (param i32)))
- (global $world i32 (i32.const 0))
+ (memory $lo 0 0)
+ (table $wor 0 0 funcref)
+ (global $ld i32 (i32.const 0))
(func $of (param $wasm i32)
(local $!#$%&'*+-./:<=>?@\^_`|~ f64)
(nop)
@@ -17,11 +21,25 @@
)
=== roundtripped ===
-(module $hello
+(module $hel
(type $i32_=>_none (func (param i32)))
- (global $global$0 i32 (i32.const 0))
+ (memory $lo 0 0)
+ (table $wor 0 0 funcref)
+ (global $ld i32 (i32.const 0))
(func $of (param $js i32)
- (local $!#$%&'*+-./:<=>?@\^_`|~ f64)
+ (local $!#$%&'*+-./:<=>?@\5c^_`|~ f64)
+ (nop)
+ )
+)
+
+=== roundtripped again ===
+(module $hel
+ (type $i32_=>_none (func (param i32)))
+ (memory $lo 0 0)
+ (table $wor 0 0 funcref)
+ (global $ld i32 (i32.const 0))
+ (func $of (param $js i32)
+ (local $!#$%&'*+-./:<=>?@\5c^_`|~ f64)
(nop)
)
)