summaryrefslogtreecommitdiff
path: root/test/example
diff options
context:
space:
mode:
Diffstat (limited to 'test/example')
-rw-r--r--test/example/c-api-kitchen-sink.txt6
-rw-r--r--test/example/c-api-unused-mem.txt10
2 files changed, 8 insertions, 8 deletions
diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt
index e4c371211..7fa1b4ea7 100644
--- a/test/example/c-api-kitchen-sink.txt
+++ b/test/example/c-api-kitchen-sink.txt
@@ -1041,10 +1041,10 @@ optimized:
module loaded from binary form:
(module
(type $0 (func (param i32 i32) (result i32)))
- (func $adder (; 0 ;) (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
+ (func $adder (; 0 ;) (type $0) (param $0 i32) (param $1 i32) (result i32)
(i32.add
- (get_local $var$0)
- (get_local $var$1)
+ (get_local $0)
+ (get_local $1)
)
)
)
diff --git a/test/example/c-api-unused-mem.txt b/test/example/c-api-unused-mem.txt
index 715a5e655..6e67735bd 100644
--- a/test/example/c-api-unused-mem.txt
+++ b/test/example/c-api-unused-mem.txt
@@ -55,11 +55,11 @@
(export "main" (func $main))
(export "rust_entry" (func $__wasm_start))
(func $main (; 0 ;) (type $0)
- (local $var$0 i32)
- (local $var$1 i32)
- (local $var$2 i64)
+ (local $0 i32)
+ (local $1 i32)
+ (local $2 i64)
(block $label$1
- (set_local $var$0
+ (set_local $0
(i32.load
(i32.const 0)
)
@@ -80,7 +80,7 @@
(block $label$8
(i32.store
(i32.const 0)
- (get_local $var$0)
+ (get_local $0)
)
(return)
)