summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/passes/func-metrics.txt2
-rw-r--r--test/passes/roundtrip_typenames_features.bin.txt9
-rw-r--r--test/passes/roundtrip_typenames_features.passes1
-rw-r--r--test/passes/roundtrip_typenames_features.wasmbin0 -> 118 bytes
4 files changed, 11 insertions, 1 deletions
diff --git a/test/passes/func-metrics.txt b/test/passes/func-metrics.txt
index b224c980c..1ca5d2fd9 100644
--- a/test/passes/func-metrics.txt
+++ b/test/passes/func-metrics.txt
@@ -253,7 +253,7 @@ func: 0
[vars] : 0
GlobalGet : 1
export: stackSave (0)
- [removable-bytes-without-it]: 56
+ [removable-bytes-without-it]: 62
[total] : 0
(module
(type $0 (func (result i32)))
diff --git a/test/passes/roundtrip_typenames_features.bin.txt b/test/passes/roundtrip_typenames_features.bin.txt
new file mode 100644
index 000000000..852dea7f9
--- /dev/null
+++ b/test/passes/roundtrip_typenames_features.bin.txt
@@ -0,0 +1,9 @@
+(module
+ (type $ref?|$NamedStruct|_=>_none (func (param (ref null $NamedStruct))))
+ (type $NamedStruct (struct ))
+ (export "export" (func $0))
+ (func $0 (param $0 (ref null $NamedStruct))
+ (nop)
+ )
+ ;; features section: reference-types, gc
+)
diff --git a/test/passes/roundtrip_typenames_features.passes b/test/passes/roundtrip_typenames_features.passes
new file mode 100644
index 000000000..490fcd42f
--- /dev/null
+++ b/test/passes/roundtrip_typenames_features.passes
@@ -0,0 +1 @@
+roundtrip
diff --git a/test/passes/roundtrip_typenames_features.wasm b/test/passes/roundtrip_typenames_features.wasm
new file mode 100644
index 000000000..822accaa5
--- /dev/null
+++ b/test/passes/roundtrip_typenames_features.wasm
Binary files differ