diff options
Diffstat (limited to 'test/wasm/function-index.test')
-rw-r--r-- | test/wasm/function-index.test | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/wasm/function-index.test b/test/wasm/function-index.test new file mode 100644 index 0000000000000..03bd879b5176f --- /dev/null +++ b/test/wasm/function-index.test @@ -0,0 +1,18 @@ +# RUN: llc -filetype=obj -mtriple=wasm32-unknown-uknown-wasm %p/Inputs/ret32.ll -o %t.ret32.o +# RUN: llc -filetype=obj -mtriple=wasm32-unknown-uknown-wasm %p/Inputs/ret64.ll -o %t.ret64.o +# RUN: lld -flavor wasm -r -o %t.wasm %t.ret32.o %t.ret64.o +# RUN: obj2yaml %t.wasm | FileCheck %s + +CHECK: Sections: +CHECK: - Type: TYPE +CHECK: Signatures: +CHECK: - Index: 0 +CHECK: ReturnType: I32 +CHECK: ParamTypes: +CHECK: - F32 +CHECK: - Index: 1 +CHECK: ReturnType: I64 +CHECK: ParamTypes: +CHECK: - F64 +CHECK: - Type: FUNCTION +CHECK: FunctionTypes: [ 0, 1 ] |