From 3cfb90c2acac907dfbf9db7ad0940a06183dcda4 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 6 Jan 2016 16:14:26 -0800 Subject: handle/ignore visibilities in s2wasm --- test/dot_s/function-data-sections.wast | 35 ++++++++++++++++++++++++++++++++++ test/dot_s/visibilities.wast | 28 +++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 test/dot_s/function-data-sections.wast create mode 100644 test/dot_s/visibilities.wast (limited to 'test') diff --git a/test/dot_s/function-data-sections.wast b/test/dot_s/function-data-sections.wast new file mode 100644 index 000000000..3620f33c6 --- /dev/null +++ b/test/dot_s/function-data-sections.wast @@ -0,0 +1,35 @@ +(module + (memory 16 4294967295 (segment 4 "\00\00\00\00") (segment 8 "\01\00\00\00") (segment 12 "33\13@")) + (export "foo" $foo) + (export "bar" $bar) + (export "qux" $qux) + (func $foo + (block $fake_return_waka123 + (block + (br $fake_return_waka123) + ) + ) + ) + (func $bar (param $$0 i32) (result i32) + (block $fake_return_waka123 + (block + (br $fake_return_waka123 + (get_local $$0) + ) + ) + ) + ) + (func $qux (param $$0 f64) (param $$1 f64) (result f64) + (block $fake_return_waka123 + (block + (br $fake_return_waka123 + (f64.add + (get_local $$0) + (get_local $$1) + ) + ) + ) + ) + ) +) +;; METADATA: { "asmConsts": {},"staticBump": 15 } diff --git a/test/dot_s/visibilities.wast b/test/dot_s/visibilities.wast new file mode 100644 index 000000000..261834b58 --- /dev/null +++ b/test/dot_s/visibilities.wast @@ -0,0 +1,28 @@ +(module + (memory 0 4294967295) + (export "foo" $foo) + (export "bar" $bar) + (export "qux" $qux) + (func $foo + (block $fake_return_waka123 + (block + (br $fake_return_waka123) + ) + ) + ) + (func $bar + (block $fake_return_waka123 + (block + (br $fake_return_waka123) + ) + ) + ) + (func $qux + (block $fake_return_waka123 + (block + (br $fake_return_waka123) + ) + ) + ) +) +;; METADATA: { "asmConsts": {},"staticBump": 0 } -- cgit v1.2.3