diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/dot_s/text_before_type.s | 19 | ||||
-rw-r--r-- | test/dot_s/text_before_type.wast | 12 |
2 files changed, 31 insertions, 0 deletions
diff --git a/test/dot_s/text_before_type.s b/test/dot_s/text_before_type.s new file mode 100644 index 000000000..7c341078a --- /dev/null +++ b/test/dot_s/text_before_type.s @@ -0,0 +1,19 @@ + .text + .file "/tmp/tmpGckQku/foo.bc" + .hidden main + .globl main + .type main,@function +main: + .result i32 + call foo@FUNCTION + i32.const $push0=, 0 + .endfunc +.Lfunc_end1: + .size main, .Lfunc_end1-main + .text + .type foo,@function +foo: + .endfunc +.Lfunc_end0: + .size foo, .Lfunc_end0-foo + diff --git a/test/dot_s/text_before_type.wast b/test/dot_s/text_before_type.wast new file mode 100644 index 000000000..7238f7b7b --- /dev/null +++ b/test/dot_s/text_before_type.wast @@ -0,0 +1,12 @@ +(module + (memory 1) + (export "memory" memory) + (export "main" $main) + (func $main (result i32) + (call $foo) + (i32.const 0) + ) + (func $foo + ) +) +;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [] } |