summaryrefslogtreecommitdiff
path: root/test/parse/expr/setlocal-index-mixed-named-unnamed.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/parse/expr/setlocal-index-mixed-named-unnamed.txt')
-rw-r--r--test/parse/expr/setlocal-index-mixed-named-unnamed.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/parse/expr/setlocal-index-mixed-named-unnamed.txt b/test/parse/expr/setlocal-index-mixed-named-unnamed.txt
new file mode 100644
index 00000000..398db637
--- /dev/null
+++ b/test/parse/expr/setlocal-index-mixed-named-unnamed.txt
@@ -0,0 +1,11 @@
+(module
+ (func (param i32) (param $n f32)
+ (local i32 i64)
+ (local $m f64)
+ (set_local 0 (i32.const 0))
+ (set_local 1 (f32.const 0))
+ (set_local $n (f32.const 0)) ;; 1
+ (set_local 2 (i32.const 0))
+ (set_local 3 (i64.const 0))
+ (set_local $m (f64.const 0)) ;; 4
+ (set_local 4 (f64.const 0))))