diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/passes/roundtrip.txt | 7 | ||||
-rw-r--r-- | test/passes/roundtrip.wast | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/passes/roundtrip.txt b/test/passes/roundtrip.txt new file mode 100644 index 000000000..ca74a299e --- /dev/null +++ b/test/passes/roundtrip.txt @@ -0,0 +1,7 @@ +(module + (type $0 (func)) + (export "foo" (func $0)) + (func $0 (; 0 ;) + (unreachable) + ) +) diff --git a/test/passes/roundtrip.wast b/test/passes/roundtrip.wast new file mode 100644 index 000000000..f562ba779 --- /dev/null +++ b/test/passes/roundtrip.wast @@ -0,0 +1,11 @@ +(module + (func "foo" + ;; binaryen skips unreachable code while reading the binary format + (unreachable) + (nop) + (nop) + (nop) + (nop) + (nop) + ) +) |