summaryrefslogtreecommitdiff
path: root/test/lit/merge/names.wat.second
diff options
context:
space:
mode:
authorJérôme Vouillon <jerome.vouillon@gmail.com>2024-04-11 17:15:59 -0400
committerGitHub <noreply@github.com>2024-04-11 14:15:59 -0700
commitd662d732ff471ea40eacc68cf62391acf27eec4e (patch)
treea129f4d274e16f9ef7f3aacc2d9d5676afb9cac4 /test/lit/merge/names.wat.second
parent729f64c4212c338a9e7324cc55414ecc62a78893 (diff)
downloadbinaryen-d662d732ff471ea40eacc68cf62391acf27eec4e.tar.gz
binaryen-d662d732ff471ea40eacc68cf62391acf27eec4e.tar.bz2
binaryen-d662d732ff471ea40eacc68cf62391acf27eec4e.zip
Fixes regarding explicit names (#6466)
- Only write explicit function names. - When merging modules, the name of types, globals and tags in all modules but the first were lost. - Set name as explicit when copying a function with a new name.
Diffstat (limited to 'test/lit/merge/names.wat.second')
-rw-r--r--test/lit/merge/names.wat.second27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/lit/merge/names.wat.second b/test/lit/merge/names.wat.second
new file mode 100644
index 000000000..4aed55d53
--- /dev/null
+++ b/test/lit/merge/names.wat.second
@@ -0,0 +1,27 @@
+(module
+
+ (func $func2 (export "f2"))
+ (func (export "f3"))
+
+ (table $table2 (export "t2") 1 funcref)
+ (table (export "t3") 1 funcref)
+
+ (memory $mem2 (export "m2") 0)
+ (memory (export "m3") 0)
+
+ (global $glob2 (export g2) i32 (i32.const 0))
+ (global (export g3) i32 (i32.const 0))
+
+ (elem $elem2 func)
+ (elem func)
+
+ (data $data2 "")
+ (data "")
+
+ (tag $tag2 (export tag2))
+ (tag (export tag3))
+
+ (type $u (struct (field $c i64) (field $d i32)))
+
+ (func (export "func2") (param (ref $u)))
+)